Beats logs going to syslog and not defined file path


(Jonathan Ocab) #1

I have always used /var/log/[name]beats as the path for the beats logs. But ever since 6.7 to 7.0, the beats logs are going to local syslog. I even hard set logging.to_syslog: false but beats still writes out to /var/log/messages (Centos). Any ideas?


(Jaime Soriano) #2

Hi @ocabj,

In 7.0 we changed the behaviour of Beats when used with systemd so they log to the standard output and let systemd manage the logs. This way it is more consistent with services in systemd-based systems.
If you want to override this behaviour please take a look to this documentation.

If you are not using systemd the behaviour shouldn't have changed.


(Jonathan Ocab) #3

@jsoriano

Thank you. I was able to restore logging to /var/log/{name}beats and stop logging to syslog by overriding "BEAT_LOG_OPTS=".