Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: keeping track of log files

by nimdokk (Vicar)
on May 19, 2006 at 13:44 UTC ( [id://550494]=note: print w/replies, xml ) Need Help??


in reply to keeping track of log files

I've done something similar. What I do may not be the most ideal, but it works. I have a job that runs once a day to move logs from Directory A on a specific server and moves them to a central log repository on another server (this runs on several servers). When the job starts, it reads in a file that contains a list of the logs that have already been moved. Then it gets a list of files in the directory and moves anything that is not on the list. Not perfect since it relies on an external file, but it works pretty nicely. What you might want would be a list of files that have already been processed stored in some sort of Perl data structure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found