Search This Blog

Wednesday, September 5, 2018

Quiter Apache Log for internal access

In the Apache2 server access log, I have lots of these:
10.10.10.12 - - [05/Sep/2018:13:42:38 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.11 - - [05/Sep/2018:13:42:39 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.12 - - [05/Sep/2018:13:42:40 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.11 - - [05/Sep/2018:13:42:41 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.12 - - [05/Sep/2018:13:42:42 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.11 - - [05/Sep/2018:13:42:43 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.12 - - [05/Sep/2018:13:42:44 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.11 - - [05/Sep/2018:13:42:45 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.12 - - [05/Sep/2018:13:42:46 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.11 - - [05/Sep/2018:13:42:47 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.12 - - [05/Sep/2018:13:42:48 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.11 - - [05/Sep/2018:13:42:49 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.12 - - [05/Sep/2018:13:42:50 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
10.10.10.11 - - [05/Sep/2018:13:42:51 -0400] "OPTIONS / HTTP/1.0" 200 192 "-" "-"
This is Apache internal child proc activity.
::1 - - [05/Sep/2018:13:48:35 -0400] "GET /server-status?auto HTTP/1.1" 400 0 "-" "Python-urllib/2.7"
::1 - - [05/Sep/2018:13:49:35 -0400] "GET /server-status?auto HTTP/1.1" 400 0 "-" "Python-urllib/2.7"
::1 - - [05/Sep/2018:13:50:35 -0400] "GET /server-status?auto HTTP/1.1" 400 0 "-" "Python-urllib/2.7"
::1 - - [05/Sep/2018:13:51:35 -0400] "GET /server-status?auto HTTP/1.1" 400 0 "-" "Python-urllib/2.7"
::1 - - [05/Sep/2018:13:52:35 -0400] "GET /server-status?auto HTTP/1.1" 400 0 "-" "Python-urllib/2.7"
::1 - - [05/Sep/2018:13:53:35 -0400] "GET /server-status?auto HTTP/1.1" 400 0 "-" "Python-urllib/2.7"
::1 - - [05/Sep/2018:13:54:35 -0400] "GET /server-status?auto HTTP/1.1" 400 0 "-" "Python-urllib/2.7"
::1 - - [05/Sep/2018:13:55:35 -0400] "GET /server-status?auto HTTP/1.1" 400 0 "-" "Python-urllib/2.7"
This is the check_mk logcal check plugin. On Debian Modify /etc/apache2/sites-enable/milliondollarserver.com/.conf
        SetEnvIf Request_URI "^/server-status" dontlog
        SetEnvIf Request_Method "^OPTIONS$" dontlog
        CustomLog ${APACHE_LOG_DIR}/milliondollarserver.com_ssl_access.log combined env=!dontlog
Restart the Apache2 service.
# service apache2 stop && rm -rf /var/log/apache2/* && service apache2 start && tailf /var/log/apache2/*

No comments:

Post a Comment