# Logstash not logging to /var/log

**URL:** <https://discuss.elastic.co/t/logstash-not-logging-to-var-log/125013>\
**Category:** Logstash\
**Created:** [March 21, 2018, 3:06pm UTC](https://discuss.elastic.co/t/logstash-not-logging-to-var-log/125013 "2018-03-21T15:06:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hgpit](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hgpit](https://discuss.elastic.co/u/hgpit)\
**Post date:** [March 21, 2018, 3:06pm UTC](https://discuss.elastic.co/t/logstash-not-logging-to-var-log/125013/1 "2018-03-21T15:06:05Z")

</div>

Hello,

I am brand new to logstash 6.2.3 and struggling with some basics. I have installed it onto CentOS7.

If I run ' **systemctl start logstash**', I get nothing output to **/var/log/logstash/** (but ' **systemctl status logstash**' reveals that it's apparently running).  
If I run **/usr/share/logstash/bin/logstash --path.settings="/etc/logstash"** I get logs.

How can I fix it so the former operation gives me log output?  
My **/etc/logstash/logstash.yml** file has " **path.logs: /var/log/logstash**".

Thank you

---

<div class="post-metadata">

**Author:** ![hgpit](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hgpit](https://discuss.elastic.co/u/hgpit)\
**Post date:** [March 21, 2018, 3:47pm UTC](https://discuss.elastic.co/t/logstash-not-logging-to-var-log/125013/2 "2018-03-21T15:47:15Z")

</div>

Turns out it was a permissions issue. All files under /var/lib/logstash were owned by root. I changed ownership to logstash and now it appears to be logging (and actually working) properly.

---

<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:** [April 18, 2018, 3:47pm UTC](https://discuss.elastic.co/t/logstash-not-logging-to-var-log/125013/3 "2018-04-18T15:47:16Z")

</div>

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