|
|
#1 |
|
Lieutenant Commander
![]() ![]() ![]() ![]() |
Apache logging question
Can I config apache to not log certain IPs? I connect to my http server the most of anyone, and I want to see what everyone else is doing, not myself.
Thanks |
|
|
|
|
|
#2 |
|
Commander
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2000
Location: Omaha, NE, United States
Posts: 1,275
|
This link gives you the info you need: http://httpd.apache.org/docs/logs.html
Here's the important stuff Conditional Logging There are times when it is convenient to exclude certain entries from the access logs based on characteristics of the client request. This is easily accomplished with the help of environment variables. First, an environment variable must be set to indicate that the request meets certain conditions. This is usually accomplished with SetEnvIf. Then the env= clause of the CustomLog directive is used to include or exclude requests where the environment variable is set. Some examples: # Mark requests from the loop-back interface SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog # Mark requests for the robots.txt file SetEnvIf Request_URI "^/robots\.txt$" dontlog # Log what remains CustomLog logs/access_log common env=!dontlog Last edited by Hoser : 01-25-2003 at 08:39 PM. |
|
|
|
|
|
#3 |
|
Lieutenant Commander
![]() ![]() ![]() ![]() |
I put that into my conf file, but it didnt seem to work? Should I be placing the text in a specific area of the log file?
|
|
|
|