|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
POE::Wheel::FollowTail with a changing filename to tailby Random_Walk (Parson) |
| on Feb 25, 2008 at 12:47 UTC ( #669991=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Random_Walk has asked for the
wisdom of the Perl Monks concerning the following question:
Greetings dear monks, I am using POE::Wheel::FollowTail to parse a number of log files written to one central logging server. Unfortunately these files include the epoch time in the file name and a rolled over at midnight. The name of the new file should be predictable, it is a base name plus the epoch seconds at midnight. I plan to act on the ResetEvent that should be generated when the file is removed. Then I want to change FollowTails' internal file name with something like ... when FollowTail tries to re-open the file it should pick up the new one. I think it should work with perhaps a little minor tweaking but is it sane to hook into internal details of FollowTail like this or is there a more sensible way to do this ? Thanks for taking the time,
Pereant, qui ante nos nostra dixerunt!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||