# Symbolic link to logstash.log file not working

**URL:** <https://discuss.elastic.co/t/symbolic-link-to-logstash-log-file-not-working/40500>\
**Category:** Logstash\
**Created:** [January 29, 2016, 4:17pm UTC](https://discuss.elastic.co/t/symbolic-link-to-logstash-log-file-not-working/40500 "2016-01-29T16:17:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trekr5](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@trekr5](https://discuss.elastic.co/u/trekr5)\
**Post date:** [January 29, 2016, 4:17pm UTC](https://discuss.elastic.co/t/symbolic-link-to-logstash-log-file-not-working/40500/1 "2016-01-29T16:17:38Z")

</div>

Hello,

I'm hoping someone can help me with this issue.

I've installed logstash 1.5.4 on an amazon linux box and everything works fine. Because this runs in production, the log file /var/log/logstash.log tends to fill up very quickly and so I've decided to add an ebs volume and put the logstash.log onto this volume so that if the log file fills up, it doesn't make the device run out of space and then consequently shut down logstash.

When I have added the ebs volume and then created a symbolic link to the log file, on this volume, from /var/log/logstash.log. When I now check the logstash.log file, no errors are now being recorded even though the logstash service is running.

Is it possible to get symbolic links working with logstash-1.5.4? If so can someone tell me how?

Many thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 30, 2016, 3:08pm UTC](https://discuss.elastic.co/t/symbolic-link-to-logstash-log-file-not-working/40500/2 "2016-01-30T15:08:05Z")

</div>

How about symlinking the whole log directory to a directory on the EBS volume? Apart from possibly fixing your current problem it should make it easier to enable log rotation.

---

<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 6, 2017, 5:13am UTC](https://discuss.elastic.co/t/symbolic-link-to-logstash-log-file-not-working/40500/3 "2017-07-06T05:13:40Z")

</div>


