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

[cobalt-users] dynamic IP's in log files



Hi Guys,

I have written a small script which searches my http access logs just before
they rotate every night in search of a specific string (searchstring).  It
writes the results to a new file (so many searches can be performed over the
next few hours) and then re-searches excluding my ip address (grep -v
212.21.123.67).  The results are then emailed to the user (mail -s "search
results" raquser)

Below is the entry in my crontab :

29 03 * * * grep searchstring /home/log/httpd/access >
/home/sites/site1/web/output.txt ; grep -v 212.21.123.67
/home/sites/site1/web/output.txt | mail -s "search results" raquser

So this shows me every time searchstring was accessed by anyone other than
me.  Now, here's the thing.  I want to add this function for somebody else,
but they have a dynamic IP address.  So, what can I use to specifically
exclude their visits to the document in question?  I have been told I may be
able to "exclude a browser" but haven't a clue what this means or how to do
it.

Any ideas?