# 6.7.1 - Unexpected Log Destination

**URL:** <https://discuss.elastic.co/t/6-7-1-unexpected-log-destination/176650>\
**Category:** Logstash\
**Created:** [April 12, 2019, 2:48pm UTC](https://discuss.elastic.co/t/6-7-1-unexpected-log-destination/176650 "2019-04-12T14:48:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [April 12, 2019, 2:49pm UTC](https://discuss.elastic.co/t/6-7-1-unexpected-log-destination/176650/1 "2019-04-12T14:49:00Z")

</div>

Hi,  
I have installed logstash 6.7.1 and while logs are being written to /var/log/logstash, they're also being written to syslog. How do I disable this behaviour? OS is ubuntu bionic...

Regards,  
D

---

<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:** [April 12, 2019, 4:33pm UTC](https://discuss.elastic.co/t/6-7-1-unexpected-log-destination/176650/2 "2019-04-12T16:33:14Z")

</div>

logstash uses log4j. The default configuration does not write to syslog, it writes to /var/log/logstash and stdout.

I have seen posts before from people with your problem. My guess is that you are running logstash as a service and systemd (or whatever service manager you use) is configured to forward its stdout to /var/log/messages. You could reconfigure systemd, or you could update /etc/logstash/log4j2.properties and comment out the line

```auto
rootLogger.appenderRef.console.ref = ${sys:ls.log.format}_console

```

which will greatly reduce (but not eliminate) output to stdout. Or both.

---

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [April 15, 2019, 8:14am UTC](https://discuss.elastic.co/t/6-7-1-unexpected-log-destination/176650/3 "2019-04-15T08:14:24Z")

</div>

Ah yes, ForwardtoSyslog was enabled by default. Thanks for the pointer 🙂

---

<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 13, 2019, 8:16am UTC](https://discuss.elastic.co/t/6-7-1-unexpected-log-destination/176650/4 "2019-05-13T08:16:51Z")

</div>

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