This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Monitoring log file per hour basic" Watch "Monitoring log file per hour basic" New topic
Author

Monitoring log file per hour basic

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Hi,

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 ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Monitoring log file per hour basic