Welcome to WebmasterWorld Guest from 54.163.49.19

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)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 2, 2006
posts:2112
votes: 2


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.

Thanks

P.S.
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)

Administrator

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

joined:Aug 10, 2004
posts:10542
votes: 8


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)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 2, 2006
posts:2112
votes: 2


Thanks!

Apache

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

[webmasterworld.com...]

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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members