GREP provides a more human-readable view of your web traffic than simply grepping through the raw server logs. It makes it easy to track individual user sessions, provide conditions so you only see the hits you are interested in, and customize the output however you like.
ere's what some typical output might look like:
foobar.somewhere.net (184.108.40.206): bsr: Mozilla/5.0 ref: www.google.com/search?hl=en&q=searchstring 8:29: ~/mypage.html 8:30: ~/anotherpage.html 8:45: ~/yetanother.html ref: www.google.com/search?hl=en&q=happiness 12:23: ~/happypage.html 12:24: ~/sadpage.html
o give you an idea of the sorts of things you can do, here are some usage examples:
# show only form submissions lgrep bret '$request =~ /^POST/'
ocumentation is at the top of the source code.
Download lgrep.pl (v1.0, 12 Kb)