RSYSLOG





Rsyslog

Rsyslog ( "the rocket-fast system for log processing".)is an open-source  software utility used on unix and Unix-Like computer systems for forwarding log messages in an IP network. It implements the basic syslog protocol, extends it with content-based filtering, rich filtering capabilities, flexible configuration options and adds features such as using TCP for transport.

Lets configure the rsyslog :

Server Side

Step 1:

installing rsyslog
# yum install rsyslog

Step 2:

edit the configuration file as mentioned below
# vim /etc/rsyslog.conf

Uncomment line number 19 & 20
write the text in next line

$Templet TmplAuth "/var/log/%HOSTNAME%/%PROGRAMNAME%.log"
*.* ?TmplAuth

# systemctl restart rsyslog


Client Side

Step 1;

installing the rsyslog in client side
# yum install rsyslog

Step 2:

edit the configuration file as mention below
# vim /etc/rsyslog.conf

at end of file,,,
*.* @@Server_IP_Address:514
# ### end of the forwarding rule ###

# systemctl restart rsyslog

give this command , this will generate the sample log 
# logger this_is_test_Mail_Log


TESTING

now check both server and client

# tail /var/log/messages

 Mail should be there .



THANK YOU !!!


Comments