# Unable to reroute logs emitted from logstash

**URL:** <https://discuss.elastic.co/t/unable-to-reroute-logs-emitted-from-logstash/80954>\
**Category:** Logstash\
**Created:** [April 3, 2017, 7:15am UTC](https://discuss.elastic.co/t/unable-to-reroute-logs-emitted-from-logstash/80954 "2017-04-03T07:15:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [April 3, 2017, 7:15am UTC](https://discuss.elastic.co/t/unable-to-reroute-logs-emitted-from-logstash/80954/1 "2017-04-03T07:15:57Z")

</div>

Hi, I am stuck trying to reroute the path of logs coming from logstash.

In logstash.yml that is in etc/logstash I configured to send logs to ~/logstash as a test:

```
# ------------ Debugging Settings --------------
#
# Options for log.level:
# * fatal
# * error
# * warn
# * info (default)
# * debug
# * trace
#
# log.level: info
path.logs: ~/logstash

```

but this didnt work.

I am stuck on the logstash logs for a while ☹ any one that can help will be welcome 🙂

---

<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:** [April 3, 2017, 7:20am UTC](https://discuss.elastic.co/t/unable-to-reroute-logs-emitted-from-logstash/80954/2 "2017-04-03T07:20:33Z")

</div>

I wouldn't expect ~ to be expanded in this context, plus which user context are we talking about here? Try using an absolute path, and make sure that path is writable by the Logstash user.

---

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [April 3, 2017, 7:30am UTC](https://discuss.elastic.co/t/unable-to-reroute-logs-emitted-from-logstash/80954/3 "2017-04-03T07:30:13Z")

</div>

Thanks for the answer!

You are right and this was a silly mistake, also when I tested in different places I really forgot to check if it writable!

Thanks again!

---

<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 1, 2017, 7:30am UTC](https://discuss.elastic.co/t/unable-to-reroute-logs-emitted-from-logstash/80954/4 "2017-05-01T07:30:19Z")

</div>

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