Skip to content

Instantly share code, notes, and snippets.

@garlandkr
Last active February 24, 2016 12:30
Show Gist options
  • Save garlandkr/4498157 to your computer and use it in GitHub Desktop.
Save garlandkr/4498157 to your computer and use it in GitHub Desktop.
rsyslog with json template for logstash
$template enhanced,"{\"event\":{\"p_proc\":\"%programname%\",\"p_sys\":\"%hostname%\",\"time\":\"%timestamp:::date-rfc3339%\"},\"message\":{\"raw_msg\":\"%rawmsg%\"}}\n",json
*.* @@logcenter:5514;enhanced
@bdmorin
Copy link

bdmorin commented Jun 1, 2013

What does your logstash import conf look like for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment