# Syslog output plugin log format is not proper

**URL:** <https://discuss.elastic.co/t/syslog-output-plugin-log-format-is-not-proper/77260>\
**Category:** Logstash\
**Created:** [March 3, 2017, 4:41am UTC](https://discuss.elastic.co/t/syslog-output-plugin-log-format-is-not-proper/77260 "2017-03-03T04:41:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronakg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronakg/32/14961_2.png) [@ronakg](https://discuss.elastic.co/u/ronakg)\
**Post date:** [March 3, 2017, 4:41am UTC](https://discuss.elastic.co/t/syslog-output-plugin-log-format-is-not-proper/77260/1 "2017-03-03T04:41:27Z")

</div>

Hi,

I'm using the syslog output plugin to send events out to a remote syslog server. Below is my configuration:

```
output {
    syslog {
       host => "172.20.24.65"
       port => 514
       appname => "%{[kubernetes][container_name]}"
       procid => "%{[kubernetes][pod]}"
       rfc => "rfc5424"
    }
}

```

The logs that are received on the server look like following:

```auto
Mar 3 04:30:57 rogandhi-host eson[eson-3361257855-6yts2] TRACE CDB_NUM_INSTANCES /vks-group --> CONFD_OK

```

There are multiple problems with this:

- The log message is in rfc3164 format instead of rfc5424 format
- Priority, severity and version are not present as first section of the log message `<13>1`
- The timestamp is not in proper format `+YYYY-MM-dd'T'HH:mm:ss.SSSZZ`

I'm using the syslog output version 3.0.1. I don't see any errors on the logstash logs.

---

<div class="post-metadata">

**Author:** ![ronakg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronakg/32/14961_2.png) [@ronakg](https://discuss.elastic.co/u/ronakg)\
**Post date:** [March 3, 2017, 7:45am UTC](https://discuss.elastic.co/t/syslog-output-plugin-log-format-is-not-proper/77260/3 "2017-03-03T07:45:52Z")

</div>

Never mind. I was interpreting the log message wrong.

---

<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:** [March 31, 2017, 7:46am UTC](https://discuss.elastic.co/t/syslog-output-plugin-log-format-is-not-proper/77260/4 "2017-03-31T07:46:28Z")

</div>

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