Web Servers on Unix and Linux - Combining common, referer and agent logs for one Apache server

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > July 2006 > Combining common, referer and agent logs for one Apache server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Combining common, referer and agent logs for one Apache server
karmarepoco@gmail.com

2006-07-27, 7:19 pm

An Apache server here at work keeps logs not as a single file but in
this three file format: common, referer and agent. The logs are
cumbersome to work with but contain a lot of valuable old information.
I'd like to find a way to combine them into the combined format:

"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

Whereas right now they look like:

"%h %l %u %t \"%r\" %>s %b" common
"%{Referer}i -> %U" referer
"%{User-agent}i" agent

Is there any good way of doing this? I've seen this question posted
online before but never with a definitive answer.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com