[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

squid [access.log]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i want to write a little tool for my school with apache/squid in perl.
the squid writes it's access to /var/log/squid/access.log and this perl-scipt 
should go and collect these informations.
the /etc/cron.daily/squid  - script rotates the logs so if they get too full 
this stores it to a new file.

i would like to write the perlscript to update, i mean to read the logs, 
about every 5 min and then write it to a file but what if the log gets 
rotated?

1. i loose some data
2. maybe my script which may be started with "tail -f access.log" may hung

does any1 have a good idea to solve this?

tnx for everything ;-))))
joachim
===
i even looked at source from other projects but there seem to be non like 
this (calamaris) but this is not what i want this does the same but daily

- -- 
From:
Joachim Schiele
[ http://www.dune2.de || Linux - my way! ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjsFd8cACgkQeGYPq/O+yeoqpgCgim70CP6fVF2rhA33CktXTmrX
rjIAnj5YS9ysdB2YbSm68iBuDLV/hNow
=bZPf
-----END PGP SIGNATURE-----



Reply to: