Wednesday, July 16, 2008

Configuring a Syslog Server on solaris and testing it

In short

Starting the syslogd
/usr/sbin/syslogd –d
the –d option is for debugging mode

Stopping the syslogd
ps -e | grep syslog
19232 0:00 syslogd
Kill 19232

Editing the /etc/syslog.conf file
Add
*.info
*.debug
Local0.*
Eg
*.debug /var/log/syslog
*.info /var/tmp/syslog.log
local0.* /var/log/syslog

MUST : this should *NOT* have any spaces , use tabs instead.

Testing out the syslog

From some other host
nc –u 514
Type something here , you will see that in the you had configured in syslog.conf

514 is the port number (default)
Eg: nc -u nms1-sun 514

Abhishek
Sagar
Tyep Ctrl+x to exit

On nms1-sun
# cat /var/tmp/syslog.log
Jun 2 13:51:22 Abhishek
Jun 2 13:51:24 Sagar


If you require some help mail me at abhisheksagar@gmail.com



Abhishek Sagar