wood burning stoves 2.0*
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
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 ?
It is sorta covered in the JavaRanch Style Guide.
subject: Monitoring log file per hour basic
Similar Threads
BufferedReader Problem
reading from the end of file
Strange Log4j problem. Help wanted.
[log4j] DailyRollingFileAppender
retriving file-date-time