Probably a simple sed questions for deleting lines...
I've been reading info on linuxquestions.org for years. Very helpful info here. Here is my first questions!
i am trying to remove several lines of text from our apache log. Actually i'd like to not have to remove these lines (as they shouldn't be there.
220.127.116.11 - - [27/Mar/2008:15:08:01 -0400] "\x80@\x01\x03" 200 18725
that is what the bad lines look like. They screw up awstats when it trie to update. Anyway, i was hoping someone could give me some direction on using sed for this. probably jsut the portion "x80@" could be matched.
this is what i was trying:
sed -n "/x80@/d" /www/logs/access_log
it is not removing the lines for some reason.
Also, from what i understand, these lines are reltaed to some sort of SSL request or something. I'm really not sure why they are there or how to stop apache from logging these bad requests. Any ideas on that would be greatly appreciated.