# Log files are not getting generated in the defined path (logstash.yml)

**URL:** <https://discuss.elastic.co/t/log-files-are-not-getting-generated-in-the-defined-path-logstash-yml/271002>\
**Category:** Logstash\
**Created:** [April 22, 2021, 6:28pm UTC](https://discuss.elastic.co/t/log-files-are-not-getting-generated-in-the-defined-path-logstash-yml/271002 "2021-04-22T18:28:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clyton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clyton/32/97303_2.png) [@Clyton](https://discuss.elastic.co/u/Clyton)\
**Post date:** [April 22, 2021, 6:28pm UTC](https://discuss.elastic.co/t/log-files-are-not-getting-generated-in-the-defined-path-logstash-yml/271002/1 "2021-04-22T18:28:00Z")

</div>

Hi All,

In Debugging Settings of logstash.yml, I'm defining as below,

log.level: info  
path.log: /var/log/logstash

However, for some reason, the logs are getting generated in /usr/share/logstash/logs

Besides, I have noticed the startup.options have been configured as below,

# Set a home directory

LS\_HOME=/usr/share/logstash

I want the logstash to write the logs in /var/log/logstash and not in /usr/share/logstash/logs

Could someone please shed light on it. Thanks in advance.

Regards,  
Clyton

---

<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:** [May 20, 2021, 6:28pm UTC](https://discuss.elastic.co/t/log-files-are-not-getting-generated-in-the-defined-path-logstash-yml/271002/2 "2021-05-20T18:28:33Z")

</div>

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