Find x in log file, find url, eliminate all lines with that
Posted: Tue Apr 16, 2019 6:56 pm
Greetings,
I am trying to clean up my log files for analysis to eliminate crackers which slip by the various ways I can eliminate listings (robots, etc) and would like to create a regex that says:
Find any line containing x, identify the url from that line, and eliminate all other lines with that url.
This is orders of magnitude beyond my knowledge of regex and would appreciate any help offered.
Thanks in advance!
I am trying to clean up my log files for analysis to eliminate crackers which slip by the various ways I can eliminate listings (robots, etc) and would like to create a regex that says:
Find any line containing x, identify the url from that line, and eliminate all other lines with that url.
This is orders of magnitude beyond my knowledge of regex and would appreciate any help offered.
Thanks in advance!