Syslog, Syslog-ng, and Splunk Forwarders
| Topics: | tech |
|---|---|
| Tags: | |
| Share: |
I often get asked, which is better for Log Management; Syslog, Syslog-ng or Splunk Forwarders…
The answer is nearly always the same. “What are you currently running in your infrastructure? Do you have a log archive? What are you comfortable configuring?”
Most, if not all systems come with syslog built in. Setting Splunk up to handle syslog inputs is trivial. If you only deal with single line events then syslog is fine. You would just configure Splunk to use the Monitor input and point it to the target directory that you are storing your syslog log files in. Often this is /var/log or /var/adm depending on a Linux or Solaris installation.
If you have a medium scale deployment where you have lots of servers, you can configure syslog to listen to remote syslog hosts. Run Splunk on your receiver and you’re done.
As an example, lets say we have a Linux deployment.
- Step one, configure syslog to “listen” to incoming messages. On most systems these days the syslog flags are configured in the /etc/sysconfig/syslog file. Append -r to the SYSLOGD_OPTIONS=”-m 0 -r”
- On the sender hosts append to the end of the file “*.* @LOGHOST”
