Add Variable to Ignore User-Agent in Logs (#80)

* Set trivy scan to exit 0, until we cleanup those false positives
* Add variable to ignore logs for certain User-Agents. This allows us to have a clearer log when using regular health checks
This commit is contained in:
Markus Opolka
2021-07-25 16:55:56 +02:00
committed by GitHub
parent bd836fd91f
commit e638fc36a0
6 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
SetEnvIF User-Agent "(?i)(check|health|probe)" dontlog
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog