# Prevent Logstash Service logging to /var/log/syslog

**URL:** <https://discuss.elastic.co/t/prevent-logstash-service-logging-to-var-log-syslog/223875>\
**Category:** Logstash\
**Created:** [March 17, 2020, 8:27am UTC](https://discuss.elastic.co/t/prevent-logstash-service-logging-to-var-log-syslog/223875 "2020-03-17T08:27:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amish](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@Amish](https://discuss.elastic.co/u/Amish)\
**Post date:** [March 17, 2020, 8:27am UTC](https://discuss.elastic.co/t/prevent-logstash-service-logging-to-var-log-syslog/223875/1 "2020-03-17T08:27:46Z")

</div>

Hi, I am trying to work out how and where I can stop the logging of Logstash to the syslog on Ubuntu 16.04.

Instead I would like to have all of the logs for logs for Logstash in a separate file.

I should mention that I'm using Logstash 7.5.1.

Thanks

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 17, 2020, 12:47pm UTC](https://discuss.elastic.co/t/prevent-logstash-service-logging-to-var-log-syslog/223875/2 "2020-03-17T12:47:33Z")

</div>

logstash does not log to syslog by default. It logs to stdout, and you may be using a service manager that cc's stdout to syslog. You could fix that by reconfiguring whatever service manager you are using.

---

<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 14, 2020, 12:47pm UTC](https://discuss.elastic.co/t/prevent-logstash-service-logging-to-var-log-syslog/223875/3 "2020-04-14T12:47:38Z")

</div>

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