We're wanting to send Logstash's own logs to syslog instead of to a file unfortunately there is very little information about what the log configuration should look like for this approach. So far what we've come up with is the following
The configs are very picky on trailing white space, especially after the "type" fields
Logstash 6.6 comes with Log4J 2.9.1 from September 2017, it should contain the optional RFC5424Layout, but I believe by default the SyslogLayout is used. Config examples from before 2016 don't seem to be working. https://issues.apache.org/jira/browse/LOG4J2-969
Your example comes from loggly's version of the syslog appender. If you're serious about using it, you should add their JAR to the Java classpath.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.