Install and configure rsyslog Centralized logging server in 6.1

 

 

clip_image001[4]

 

1st check package installed.

clip_image002[4]

Configure rsyslog in RHEL 6.1 server side

clip_image003[4]

Enable these line using remove “#” symbol 

clip_image004[4]

Put “:omusrmsg:*” in end of line.

clip_image005[4]

Enable these line if commented.

clip_image006[4]

Put these line at the end of file:-

$template TmplAuth, “/var/log/rsyslog_custom/%HOSTNAME%/%PROGRAMNAME%.log”

$template TmplMsg, “/var/log/rsyslog_custom/%HOSTNAME%/%PROGRAMNAME%.log”

authpriv.*   ?TmplAuth

*.info,mail.none,authpriv.none,cron.none   ?TmplMsg

 

clip_image007[4]

Now edit the file /etc/sysconfig/rsyslog .And set the SYSLOGD_OPTIONS with no parameter

clip_image008[4]

Start/Restart the rsyslog service

clip_image009[4]

Create new directory in /var/log

clip_image010[4]

Configure rsyslog in client servers

clip_image011[4]

clip_image012[4]

restart the rsyslog service

clip_image013[4]

 

Verify the log in rsyslog server

clip_image014[4]