# Path to Logs not respected

**URL:** <https://discuss.elastic.co/t/path-to-logs-not-respected/234338>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 26, 2020, 12:46pm UTC](https://discuss.elastic.co/t/path-to-logs-not-respected/234338 "2020-05-26T12:46:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![norgro2601](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norgro2601/32/33292_2.png) [@norgro2601](https://discuss.elastic.co/u/norgro2601)\
**Post date:** [May 26, 2020, 12:46pm UTC](https://discuss.elastic.co/t/path-to-logs-not-respected/234338/1 "2020-05-26T12:46:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alex\_Kristiansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_kristiansen/32/46086_2.png) [@Alex\_Kristiansen](https://discuss.elastic.co/u/Alex_Kristiansen)\
**Post date:** [May 29, 2020, 7:39pm UTC](https://discuss.elastic.co/t/path-to-logs-not-respected/234338/2 "2020-05-29T19:39:19Z")

</div>

@norgro2601,

Have you tried adjusting the settings via the metricbeat config here: [https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-logging.html](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?

---

<div class="post-metadata">

**Author:** ![norgro2601](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norgro2601/32/33292_2.png) [@norgro2601](https://discuss.elastic.co/u/norgro2601)\
**Post date:** [June 3, 2020, 8:39am UTC](https://discuss.elastic.co/t/path-to-logs-not-respected/234338/3 "2020-06-03T08:39:22Z")

</div>

@Alex_Kristiansen

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

> <https://github.com/elastic/beats/issues/12024#issuecomment-628925105>
>
> OS Version: I've only tested DEB installations on Ubuntu 18.04, but I'd imagine it happens on all systemd enabled Linux systems
> Beat...

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

Thanks for your advice.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 1, 2020, 8:39am UTC](https://discuss.elastic.co/t/path-to-logs-not-respected/234338/4 "2020-07-01T08:39:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
