We have setup a system for central logging with the ELK stack (Elastic, Logstash, Kibana). Our shippers (clients) are fluentd that sends massive amount of log data to the ELK. Before fluentd traffic hits logstash it goes through an Apache httpd reverse proxy. It works very well, but we've noticed that the Apache httpd access log is spammed with entries for the fluentd access, like:
10.x.y.z - fluentd [02/Aug/2018:10:31:12 +0200] "POST /elasticsearch/_bulk HTTP/1.1" 200 6471 We've been testing If blocks to set a variable "dontlogme" and then configured the AccessLog with !dontlogme . This works, if we match for example the User-Agent. But it does not work if we try to make the condition based on (logged in) username.
What we want to achive is: if username (coming from Basic Auth) is "fluentd", dont log the request in access.log .
Is there anyone out there, that have succeeded with this?
