Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: log file analysis

by davidrw (Prior)
on Dec 22, 2006 at 05:37 UTC ( [id://591259]=note: print w/replies, xml ) Need Help??


in reply to log file analysis

maybe File::Tail will suit your needs?

Replies are listed 'Best First'.
Re^2: log file analysis
by sgt (Deacon) on Dec 22, 2006 at 13:07 UTC

    I don't know the platform. On something un*x-like, the following should work (I assume a single logfile, without true rotation {:== writes modulo maxsize} but even that could be handled)

  • you read the file doing whatever filtering, and record size read
  • you seek to the last position recorded and filter from there
  • is there any reason why a simple scheme like this could not work? AND of course you should try what has been previously recommended

    hth --stephan
Re^2: log file analysis
by vineet2004 (Initiate) on Dec 25, 2006 at 11:49 UTC
    thanks guys.....got one more query coming up soon

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-20 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found