[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] dynamic IP's in log files
- Subject: [cobalt-users] dynamic IP's in log files
- From: "FantasticMoms.com" <admin@xxxxxxxxxxxxxxxxx>
- Date: Fri Nov 14 16:37:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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?