Wednesday, March 30, 2005

sed stream editor

sed_tutorial:

" sed -e '/debug/d' < log > log.sed"

Apache logs have long entries that keep causing the stats program to segfault. The entries are of IIS webdav vulnerabilty exploit queries sent by worms from already infected servers. I havent been able to successfully rewrite the rules where these log entries are either truncated or ignored by Apache. So, the above command should solve the problem. I just replace "debug" with "x90" which does the trick.

" sed -e '/x90/d' < log > log.sed"

This is basically similar to grep -v x90, where all lines are printed, except those that have the pattern specified. In this case the pattern is x90.

Any help on configuring apache to ignore those log writes will be appreciated!

Mozilla and hypocrisy

Right, but what about the experiences that Mozilla chooses to default for users like switching to  Yahoo and making that the default upon ...