Berni , I had similar trauma with data-squid , making
read-data.pl aware of the fact that someservice.log had
been rotated. Instead of keeping a file that stores the
$lastread, $lastlineread. I stored the File::Stat $st_ino
number, which does not change while the log is being written
to, but DOES change when it's rotated (at least in the Linux
werld).
The other value I store between script runs is the value of
$whereInFile = tell LOGHANDLE; after the last read within
the interval.
Check out the methods remember and recollect in squid.pm
which I emailed to you today.
Andrew B
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=608236
Berni , I had similar trauma with data-squid , making
read-data.pl aware of the fact that someservice.log had
been rotated. Instead of keeping a file that stores the
$lastread, $lastlineread. I stored the File::Stat $st_ino
number, which does not change while the log is being written
to, but DOES change when it's rotated (at least in the Linux
werld).
The other value I store between script runs is the value of
$whereInFile = tell LOGHANDLE; after the last read within
the interval.
Check out the methods remember and recollect in squid.pm
which I emailed to you today.
Andrew B
Logged In: YES
user_id=327778
okay, in 0.5.0pre4 the module has been re-written.
The checks are basically the same, so let's see what happens
in a few weeks...