Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created July 2, 2015 17:19
Show Gist options
  • Save taotetek/cfb184fea4d000fac8e9 to your computer and use it in GitHub Desktop.
Save taotetek/cfb184fea4d000fac8e9 to your computer and use it in GitHub Desktop.
input(type="imudp" port="514" ruleset="to_sagan") # listen for udp on port 514
input(type="imtcp" port="514" ruleset="to_sagan") # listen for tcp on port 514
## REMOTE RULES ###############################################################
# send all remote logs to sagan for analysis
ruleset(name="to_sagan") {
action(type="omfile" file="|/var/run/sagan/sagan.fifo" template="sagan_template")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment