fmuquartet
Programmer
Greetings:
Can someone help me with a little script that will strip LINES from my access logs that have a hyphen '-' in the 3rd position?
Example data:
192.168.15.101 - - [02/Jul/2008:10:28:26 -0500] "GET
In this case, I want to remove all LINES in my access log that has '-' in the 3rd position, as this notes an unauthenticated user and is just noise in my logs.
I am being told that possibly sed can help out, but don't know how to approach the problem.
Thanks!
Can someone help me with a little script that will strip LINES from my access logs that have a hyphen '-' in the 3rd position?
Example data:
192.168.15.101 - - [02/Jul/2008:10:28:26 -0500] "GET
In this case, I want to remove all LINES in my access log that has '-' in the 3rd position, as this notes an unauthenticated user and is just noise in my logs.
I am being told that possibly sed can help out, but don't know how to approach the problem.
Thanks!