Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

Customize web access log files

Is this possible?



9:44 pm on Mar 15, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

So, if I want to divide activity into multiple log files, just like normally web access is divided from errors, is that possible?

For example, I would like to set conditions where a URL with a certain variable gets written in log1, and other stuff into log2.

This idea has come from a question in other thread where a member asked about dividing organic from PPC traffic.


Forgot to mention that another member already mentioned that "grep" that comes with Linux would be a good choice for automating the work with access logs.


2:19 pm on Mar 16, 2010 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

grep is probably the easiest/best answer.

however it is possible to configure Conditional Logging [httpd.apache.org] using "SetEnvIf Request_URI" [httpd.apache.org].


8:04 pm on Mar 16, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Heck, I asked a related question about logging in Apache thread, but had no reply:


I checked the online docs, but did not find specific "talk" about web access logs.

I see that my Apache query was maybe too broad.

Thanks again.

Featured Threads

Hot Threads This Week

Hot Threads This Month