That would be handy if you dont mind
I'm on a windows server if that makes a difference
regards
neil
Main Topics
Browse All TopicsHi
Is there any way I can exclude certain IP addresses from even being written to my Apache Logs.
I'm using a lot os stuff like prototype.js to update content and counters at 1-2 second intvals and of course the log files are full of these requests which I want to not log any more.
Thanks
Neil
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi Neil! Sorry boss has been kicking my arse with a bit of work....
Anyway to do this really simply and to remove the whole line containing said IP create a file called log.bat in the log folder and put the below into it. That will look for the two ip addresses from all access_log.* files.
To test it, make a seperate folder, copy some access logs in there, put this batch file in there and run it, then look through the access logs.....worked on my machine with test log files. hope this helps!
Tried the code above but getting this:
D:\logs\apache\sdc-test>rem
D:\logs\apache\sdc-test\ac
The process cannot access the file because it is being used by another process.
D:\logs\apache\sdc-test\ac
The process cannot access the file because it is being used by another process.
D:\logs\apache\sdc-test\ac
The process cannot access the file because it is being used by another process.
D:\logs\apache\sdc-test\ac
The process cannot access the file because it is being used by another process.
D:\logs\apache\sdc-test\ac
The process cannot access the file because it is being used by another process.
The system cannot find the file specified.
D:\logs\apache\sdc-test\ac
The process cannot access the file because it is being used by another process.
D:\logs\apache\sdc-test\ac
The process cannot access the file because it is being used by another process.
D:\logs\apache\sdc-test>
Regards
Neil
Business Accounts
Answer for Membership
by: BlundeyPosted on 2009-08-25 at 07:53:05ID: 25178209
Not that im aware of, but you can run a script to remove these ip addresses from the log every hour?
If your interested in that option im happy to show you an example script.