|
|
Help! Script to Remove Code* log entries
Rather than count hits, could someone please post an example of a script to remove all codered* and new worm related log entries from my apache logs. I've played around with grep and diff to little avail.
Help! Script to Remove Code* log entries
The problem with doing something like this is that you have to run it as root or some other use with permissions on the log files. Probably the easiest way would be like this:
Help! Script to Remove Code* log entries
Oops - that (replace with) should read:
Help! Script to Remove Code* log entries
Thanks for the egrep commands, they work great. I couldn't get the Apache conf log to work however. Apache starts but the access_log no longer functions (I use Apache 1.3.20). I'm not sure why. It's ok though, this way I log everything and have cron run a log cleaner script to get rid of all the entries I dont want to see in my stats. This has made the analog/report magic stats page much more useful! Thanks again. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|