Skip to content

Instantly share code, notes, and snippets.

@jamtur01
Created September 9, 2014 15:38
Show Gist options
  • Save jamtur01/bec5de275716e6b79acc to your computer and use it in GitHub Desktop.
Save jamtur01/bec5de275716e6b79acc to your computer and use it in GitHub Desktop.
[syslog]
type = "LogstreamerInput"
log_directory = "/var/log"
file_match = 'auth\.log'
decoder = "RsyslogDecoder"
[RsyslogDecoder]
type = "SandboxDecoder"
filename = "lua_decoders/rsyslog.lua"
[RsyslogDecoder.config]
type = "RSYSLOG_TraditionalFileFormat"
template = '%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n'
tz = "America/New_York"
[stdout]
type = "LogOutput"
message_matcher = "Type == 'LogstreamerInput'"
encoder = "AlertEncoder"
[AlertEncoder]
type = "SandboxEncoder"
filename = "lua_encoders/alert.lua"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment