homepage Welcome to WebmasterWorld Guest from 54.242.18.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Customize web access log files
Is this possible?
smallcompany




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

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.

 

phranque




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

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].

smallcompany




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved