# Log Files are not getting generated in the defined path of logstash.yml

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

<div class="post-metadata">

**Author:** ![Krishna\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishna_kumar/32/86798_2.png) [@Krishna\_Kumar](https://discuss.elastic.co/u/Krishna_Kumar)\
**Post date:** [April 22, 2021, 6:32pm UTC](https://discuss.elastic.co/t/log-files-are-not-getting-generated-in-the-defined-path-of-logstash-yml/271003/1 "2021-04-22T18:32:09Z")

</div>

Hi All,

I am a beginner in ELK. Could you please advise here.

In one of the ec2 server we have installed Logstash in that we have mounted the EBS volume under `/data` path and we are providing this path under log.path in logstash.yml config to use the mounted volume, but the logs are not getting generated in this defined path, instead of that it is getting generated under the `/usr/share/logstash/logs`path even though we provided the chown and chgrp permssion of logstash for the /data path.

I have already noted that in the startup.options file it is provided that the default path as like below,  
Set a home directory  
LS\_HOME=/usr/share/logstash

If we change the above LS\_HOME path to `/data/logstash/logs`, Could it work or i am wrong? or Please suggest any other work around to use the mounted volume path.

Log path config in logstash.yml:  
logstash server log file path.  
log.level: info  
path.logs: /data/logstash/logs

Regards,  
Krishna.

---

<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:32pm UTC](https://discuss.elastic.co/t/log-files-are-not-getting-generated-in-the-defined-path-of-logstash-yml/271003/2 "2021-05-20T18:32:34Z")

</div>

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