Parsing web logs with grep

When trying to use a web access log analysis tool I found that it was incorrectly parsing logs for data from my site. (How do I know it was incorrectly parsing the data? Because it returned results saying that I'd received traffic at the site months before the site owner had even approached me about creating the site!) So, I decided to take matters into my own hands and make my own log file containing just the log information about my site. Here's the command I used in Ubuntu:

::CODECOLORER_BLOCK_1::

Attacking mylog.log produced results that were much more in line with what I was expecting.

Leave a Reply

Your email address will not be published.