System log messages or remote messages on Linux server

# System log messages or remote messages.
-----------------------------------------
# Server Side:
--------------
# Set up the syslogd to accept remote messages
vi /etc/sysconfig/syslog
06 SYSLOGD_OPTIONS="-r -m -0"
:wq

# Restart the service
chkconfig syslog on
service syslog restart

# Client Side:
--------------
# Set up the syslogd to the client side to send the messages.
# Append the /etc/syslogd.conf so; goto the E.O.F. and add the line as,
27 user.* @192.168.150.51
:wq

# Restart the service
chkconfig syslog on
service syslog restart

# Now test the set up by using logger to generate log messages,
logger -i -t Viraj "This is a test message so plz; accept it."

# To check this message goto the Server end and check it out,
cat /var/log/messages

Comments

Popular Posts

Install and configure rsyslog Centralized logging server in CentOS

How to fix postfix/smtp Network is unreachable error

Could not join realm: Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli