Skip to content

Instantly share code, notes, and snippets.

@taotetek
Last active February 20, 2016 13:25
Show Gist options
  • Save taotetek/b870e7ff46cb077fa39a to your computer and use it in GitHub Desktop.
Save taotetek/b870e7ff46cb077fa39a to your computer and use it in GitHub Desktop.
template(name="cee_syslog" type="list") {
constant(value="{\"@timestamp\":\"")
property(name="timereported" dateFormat="rfc3339")
constant(value="\",\"syslog_host\":\"")
property(name="hostname")
constant(value="\",\"syslog_program\":\"")
property(name="programname")
constant(value="\",\"syslog_severity\":\"")
property(name="syslogseverity-text")
constant(value="\",\"syslog_facility\":\"")
property(name="syslogfacility-text")
constant(value="\",\"syslog_tag\":\"")
property(name="syslogtag" format="json")
constant(value="\",\"noidx_rawmsg\":\"")
property(name="rawmsg" format="json")
constant(value="\",")
property(name="$!all-json" position.from="2")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment