Skip to content

Instantly share code, notes, and snippets.

@liveaverage
Created August 7, 2014 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liveaverage/50e30d49bb93151f0576 to your computer and use it in GitHub Desktop.
Save liveaverage/50e30d49bb93151f0576 to your computer and use it in GitHub Desktop.
Sample Syslog-NG config excerpt for handling ISE syslog messages > CDA identity servers
### Filter out ISE hosts that should be sending specific messages for Device/IP association:
filter f_ise_host { (
host("4.4.4.4") or
host("8.8.8.8") or
host("ise01") or
host("ise02")
);
};
### The username and Framed-IP we're looking for are in the watchdog updates AFTER accounting "start" msgs:
filter f_ise_auth { match(".*RADIUS Accounting watchdog update.*" value ("MESSAGE")); };
destination d_NS_ISE { file("/var/log/syslog-ng/NS_logs/NS_ISE/$SOURCEIP/$SOURCEIP.log"); };
destination d_NS_pythonCDA {
program("/usr/local/cda/update_cda.py"
template("$MSG\n")
flags(no_multi_line)
flush_lines(1)
flush_timeout(1000)
);
};
log { source(s_network);
filter(f_ise_host);
filter(f_ise_auth);
destination(d_NS_ISE);
destination(d_NS_pythonCDA);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment