Path to Logs not respected

Hi,

I've upgraded one metricbeat installation to 7.7. Since the upgrade, the logs are written in /var/log/messages and not respecting the -path.logs setting.

From the former releases I have customized systemd to this setting:
[Service]
Environment="BEAT_LOG_OPTS="

The process looks like this:
/usr/share/metricbeat/bin/metricbeat -environment systemd -c /etc/metricbeat/metricbeat.yml -path.home /usr/share/metricbeat -path.config /etc/metricbeat -path.data /var/lib/metricbeat -path.logs /var/log/metricbeat

Is a setting wrong, or is this a bug in 7.7.0 ?

Best regards,
Norbert

@norgro2601,

Have you tried adjusting the settings via the metricbeat config here: https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-logging.html

Also can you copy and paste the entire systemd unit config that you modified?

@Alex_Kristiansen

my problem was also described here, seems to be a change that was introduced with 7.7.0.

I've changed the metricbeat.yml to adjust the setting and it works.

Thanks for your advice.