diff options
author | Andy Doan <andy.doan@linaro.org> | 2016-03-21 13:43:26 -0500 |
---|---|---|
committer | Andy Doan <andy.doan+gerrit@linaro.org> | 2016-03-23 16:09:58 +0000 |
commit | ceabf6c79e30550d6600dab764554bbf1e6a4ae6 (patch) | |
tree | a484f8895f1592f1e46aad5eec5e5e52402e72dc /per-service | |
parent | 7c309492eaed0e625f94d9c0a93a6f6733c47008 (diff) |
geo services: don't log route53 checks
Route 53 health checks flood the access log over 3 per second. It makes
our logs big, gives weblogs a lot more useless stuff to process/filter,
and makes it harder to debug odd issues by tailing the log.
This removes Route 53 health checks from our Apache access logs
Change-Id: I3a883ec838513958cb5e1728bd28abf08a731884
Reviewed-on: https://review.linaro.org/11005
Reviewed-by: Ben Copeland <ben.copeland@linaro.org>
Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r-- | per-service/git-servers/files/android-git.linaro.org.conf | 4 | ||||
-rw-r--r-- | per-service/git-servers/files/git.linaro.org.conf | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/per-service/git-servers/files/android-git.linaro.org.conf b/per-service/git-servers/files/android-git.linaro.org.conf index 94ed49b0..958690f4 100644 --- a/per-service/git-servers/files/android-git.linaro.org.conf +++ b/per-service/git-servers/files/android-git.linaro.org.conf @@ -41,7 +41,7 @@ Mutex default rewrite-map ServerAlias android-us.git.linaro.org ServerAdmin webmaster@linaro.org - CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D microseconds" + CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D microseconds" env=!dontlog ErrorLog ${APACHE_LOG_DIR}/{{ git_host }}-error.log DocumentRoot {{ apache_root }}/{{ git_host }} @@ -116,6 +116,8 @@ Mutex default rewrite-map SetEnv GIT_PROJECT_ROOT {{ repo_root }} SetEnv GITWEB_CONFIG /etc/gitweb.{{ git_host }}.conf + SetEnvIf User-Agent "Amazon Route 53 Health Check" dontlog + Alias /gitweb.js /usr/share/gitweb/static/gitweb.js Alias /git-http/ {{ repo_root }}/ diff --git a/per-service/git-servers/files/git.linaro.org.conf b/per-service/git-servers/files/git.linaro.org.conf index 79579745..2f3d8431 100644 --- a/per-service/git-servers/files/git.linaro.org.conf +++ b/per-service/git-servers/files/git.linaro.org.conf @@ -11,7 +11,7 @@ SuexecUserGroup {{ git_user }} {{ git_user }} ServerAlias git-geo.linaro.org ServerAdmin webmaster@linaro.org - CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D microseconds" + CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D microseconds" env=!dontlog ErrorLog ${APACHE_LOG_DIR}/{{ git_host }}-error.log DocumentRoot {{ apache_root }}/{{ git_host }} @@ -84,6 +84,8 @@ SuexecUserGroup {{ git_user }} {{ git_user }} SetEnv GIT_PROJECT_ROOT {{ repo_root }} SetEnv GITWEB_CONFIG /etc/gitweb.{{ git_host }}.conf + SetEnvIf User-Agent "Amazon Route 53 Health Check" dontlog + AliasMatch ^/git/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ {{ repo_root }}/$1 AliasMatch ^/git/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ {{ repo_root }}/$1 @@ -148,7 +150,7 @@ SuexecUserGroup {{ git_user }} {{ git_user }} SSLCertificateKeyFile {{ssl_key}} SSLCACertificateFile {{ssl_ca}} - CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D microseconds" + CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D microseconds" env=!dontlog ErrorLog ${APACHE_LOG_DIR}/{{ git_host }}-error.log DocumentRoot {{ apache_root }}/{{ git_host }} @@ -222,6 +224,8 @@ SuexecUserGroup {{ git_user }} {{ git_user }} SetEnv GIT_PROJECT_ROOT {{ repo_root }} SetEnv GITWEB_CONFIG /etc/gitweb.{{ git_host }}.conf + SetEnvIf User-Agent "Amazon Route 53 Health Check" dontlog + AliasMatch ^/git/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ {{ repo_root }}/$1 AliasMatch ^/git/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ {{ repo_root }}/$1 |