Tuesday, December 21, 2010

Parsing NCSA combined log format - working with columns

problem: You want to work with columns of an NCSA combined log file

You might have some apache or squid NSCA combined based logs. For example you might want to get the UserAgent column so you can sort and find unique values

solution: Perl Regular Expressions to the rescue!

citation:

Props to:
Me
The PHP Cookbook

No comments: