I want to write an app that starts up when squid starts that will
monitor access.log. everytime a line is written out to the log file
the script will parse the line and then do some "stuff to it" I don't
need any help with the stuff part :)

What I don't understand is to how to have a program running the
monitors a text file for changes?

I don't want to be to specifict on how I want to monitor because I am
not sure whats the best way so rather then direct you guys I thought I
would just leave it open for your thoughts on the best approach.

What the I plan to do once I have the data...
reformat the data by taking the ip address, arping it to get the mac
address then looking up the mac address to get the machine name.

then basically dump out a csv file like this ...
"date","time","MachineName","url","filesize"
I can do all of this once I have the input from access.log.

It needs to be in real time because these machines are dhcp that being
the case I need to get the mac address of the ip being used the very
instance that it is used.

Your thoughts,
Paul Kraus

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to