Ostree repo pull requests generates excessive amounts of lighttpd access log entries. This commit configures syslog-ng to filter out any ostree pull related log entry that returns a 200 status code from the lighttpd access log. This commit only filters requests from the /iso/*/ostree_repo/objects/*/*.filez|.dirtree URL, it does not filter request to the /feed/rel- */ostree_repo/objects/... URL. Test Plan: 1. PASS - Install a subcloud and verify that the ostree pull request messages are filtered out from /var/www/var/log/lighttpd-access.log; 2. PASS - Use curl to request invalid files and verify that requests with status code other than 200 are still being logged. 3. PASS - Do a system bring-up test by creating an image with the applied changes and verify that the system installation succeeds and that the syslog-ng and lighttpd services are working. 4. PASS - Verify that Horizon is still able to do HTTP requests. Partial-Bug: #1998837 Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com> Change-Id: I637e7f1bae362be98f4b88bbc7c0585d1121fe80changes/99/866999/9
parent
a8357be883
commit
466b382e36
Loading…
Reference in new issue