![]() |
Now serving 103 guides. |
|
Setup syslog-ng General Information At work we have a few Linux machines that are used for various things like dns and firewalling. It is a pain to log into each one of these machines when you have to troubleshoot something.Requirements
Installation The syslogd on both FreeBSD and Linux seem to be a little bit limited ( as far as I could figure out ). Let's start by installing syslog-ng.
/usr/local/etc/syslog-ng/syslog-ng.conf.sample which I typically copy over to be my real config.
This will also stop the default syslogd from starting up. The sample configuration will configure syslog-ng to act just like the old syslogd. All the file locations will be the same in /var/log.syslog-ng basically has four types of statements (maybe more)
/var/log/remote/2006/09/20/hostname.log with all their syslog messages in it.You can see my entire config here. On the remote machines I simply add *.* @xxx.xxx.xxx.xxx to /etc/syslog.conf. This will send everything over to the loghost machine.Now it is time to install splunk, but before you do that there is one more port to install.
Now download the FreeBSD splunk installer, make it executable, and run. It will ask you a bunch of questions, too many to explain here. You can find out more information on http://www.splunk.com. Finally open up the firewall for port 8000, which splunk listens on, and point your browser to loghost:8000. Good luck Author: coolest |
Copyright 2003 - 2008 BSD Guides. All rights reserved. |
About | Terms of Use | Privacy | Contact |

