# Unable to customize the beats log storage location

**URL:** <https://discuss.elastic.co/t/unable-to-customize-the-beats-log-storage-location/192890>\
**Category:** Beats\
**Created:** [July 30, 2019, 12:12pm UTC](https://discuss.elastic.co/t/unable-to-customize-the-beats-log-storage-location/192890 "2019-07-30T12:12:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![subhash.parise](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@subhash.parise](https://discuss.elastic.co/u/subhash.parise)\
**Post date:** [July 30, 2019, 12:12pm UTC](https://discuss.elastic.co/t/unable-to-customize-the-beats-log-storage-location/192890/1 "2019-07-30T12:12:07Z")

</div>

Hello Team,

I have installed elasticsearch 7.2 ,filebeat,metricbeat are configured to push the metrics & logs. By default all beat logs are writing to /var/log/messages or /var/log/syslog.

i have modified -path.logs = /var/log/beats in /lib/systemd/system/metricbeat.service and changed metricbeat.yml logging options  
ex:  
logging.level: info  
logging.to\_files: true  
logging.to\_syslog: false  
logging.files:  
path: /var/log/beats  
name: metricbeat

But still beats logs are writing in to /var/log/messages & syslog

is there any config i am missing here to change beat log location to custom location?

Any help much appreciated ?

---

<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:** [August 27, 2019, 2:12pm UTC](https://discuss.elastic.co/t/unable-to-customize-the-beats-log-storage-location/192890/2 "2019-08-27T14:12:08Z")

</div>

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