# Logstash-output-syslog plugin sends incorrect facility

**URL:** <https://discuss.elastic.co/t/logstash-output-syslog-plugin-sends-incorrect-facility/255734>\
**Category:** Logstash\
**Created:** [November 17, 2020, 4:26pm UTC](https://discuss.elastic.co/t/logstash-output-syslog-plugin-sends-incorrect-facility/255734 "2020-11-17T16:26:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsteenkamp](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jsteenkamp](https://discuss.elastic.co/u/jsteenkamp)\
**Post date:** [November 17, 2020, 4:26pm UTC](https://discuss.elastic.co/t/logstash-output-syslog-plugin-sends-incorrect-facility/255734/1 "2020-11-17T16:26:04Z")

</div>

- Linux Debian 10.6
- Logstash 7.10.0
- OpenJDK 11.0.8+10
- rsyslogd 8.1901.0
- plugin logstash-output-syslog

example.conf:

```auto
input {
  stdin {}
}

output {
  stdout {}
  syslog {
    id => "syslog_output"
    appname => "logstash_test"
    facility => "local7"
    host => "x.x.x.x"
    port => 514
    protocol => "tcp"
  }
}

```

`$echo 'Nov 17 17:14:49 testmessage' | sudo /usr/share/logstash/bin/logstash -f example.conf --path.data /var/tmp`

```auto
{
  "host" => "server01",
  "message" => "Nov 17 17:14:49 testmessage",
  "@version" => "1",
  "@timestamp" => 2020-11-17T16:25:05.943Z
}

```

This indeed also sends the syslog message, but the facility does not match with the config (local5).

```auto
$tail -0f /data/log/example.log
local5.notice 2020-11-17T16:15:41.252Z server01 Nov 17 17:14:49 testmessage

```

---

<div class="post-metadata">

**Author:** ![jsteenkamp](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jsteenkamp](https://discuss.elastic.co/u/jsteenkamp)\
**Post date:** [November 18, 2020, 1:18pm UTC](https://discuss.elastic.co/t/logstash-output-syslog-plugin-sends-incorrect-facility/255734/2 "2020-11-18T13:18:57Z")

</div>

confirmed bug: [https://github.com/logstash-plugins/logstash-output-syslog/issues/39](https://github.com/logstash-plugins/logstash-output-syslog/issues/39)

---

<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:** [December 16, 2020, 1:19pm UTC](https://discuss.elastic.co/t/logstash-output-syslog-plugin-sends-incorrect-facility/255734/3 "2020-12-16T13:19:02Z")

</div>

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