infra/roles/rsyslog/templates/01-json-format.conf.j2

16 lines
826 B
Django/Jinja

template(name="json-template"
type="list") {
constant(value="{")
constant(value="\"@timestamp\":\"") property(name="timereported" dateFormat="rfc3339")
constant(value="\",\"@version\":\"1")
constant(value="\",\"message\":\"") property(name="msg" format="json")
constant(value="\",\"hostname\":\"") property(name="hostname")
constant(value="\",\"severity\":\"") property(name="syslogseverity-text")
constant(value="\",\"syslogtag\":\"") property(name="syslogtag")
constant(value="\",\"facility\":\"") property(name="syslogfacility-text")
constant(value="\",\"test_string\":\"foo")
constant(value="\",\"programname\":\"") property(name="programname")
constant(value="\",\"procid\":\"") property(name="procid")
constant(value="\"}\n")
}