File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Monitoring log file per hour basic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Monitoring log file per hour basic" Watch "Monitoring log file per hour basic" New topic

Monitoring log file per hour basic

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295

I need to read log file every hour to find an ERROR/Server logs, in my next hour I need to read new logs, which have appended to the file.

I am using BefferedReader, Is this useful for this scenario?

How Do I remember till which line I completed reading, from which line I need to start reading in my new hour ?

Can some one please give me some light on this?

Thanks in advance

SCJP 5 |SCWCD 5| Started thinking about Web Services ?
I agree. Here's the link:
subject: Monitoring log file per hour basic
It's not a secret anymore!