homepage Welcome to WebmasterWorld Guest from 54.161.166.171
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Log Server Activities .. But (maybe) not my own.
Looking for better aproach then the access.log
Willis




msg:1510699
 5:50 pm on Jun 9, 2004 (gmt 0)

I have no idea what aproach I should take, but what I wanna do is log all activites on my server, in such a way that its easy to access and comprehend.

Well that or, when working with the Apache\logs\access.log file, restrict what it logs and does not log? (aka not log my own activities).

I just looked at it for the first time, and its 6.10 MB.

99% of my servers use is by myself, so I really only care about that other 1% when i have other people travel to it.

Feedback?

 

coopster




msg:1510700
 8:32 pm on Jun 9, 2004 (gmt 0)

Are you familiar with Conditional Logs [httpd.apache.org]?

Willis




msg:1510701
 4:04 am on Jun 14, 2004 (gmt 0)

No and I'm trying to understand it now . .

What am I supposed to edit to add entrys?

Copy n paste but - if I understand I gotta add something like this? But again, where?:

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog

lemat




msg:1510702
 5:02 pm on Jun 14, 2004 (gmt 0)

something like this in httpd.conf makes apache log in two different files - depends on the IP address.

SetEnvIf Remote_Addr "(^192\.168\.0\.¦^127\.$)" LOCAL=true
CustomLog "/var/log/httpd/access_log" combined env=!LOCAL
CustomLog "/var/log/httpd/access_local_log" combined env=LOCAL

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
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