File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Monitoring log file per hour basic
 
Similar Threads
reading from the end of file
Strange Log4j problem. Help wanted.
[log4j] DailyRollingFileAppender
retriving file-date-time
BufferedReader Problem