Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Parsing a specific section of a log file

by sanPerl (Friar)
on Mar 01, 2007 at 06:05 UTC ( [id://602647]=note: print w/replies, xml ) Need Help??


in reply to Parsing a specific section of a log file

I am just assuming few things before providing you my solution.
Assumption 1:You are running this script on Unix/Linux,
Assumption 2:The log file gets appended from bottom

Script can save the latest log file to some other directory after every run. Then script will run system 'diff' command to find out differences between latest log file and your saved log file (Which is the last version of log file). You will get entries, which are latest addition after last execution time of script. Work on those entries and use regex your way.
  • Comment on Re: Parsing a specific section of a log file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://602647]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found