LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs > pantdk
User Name
Password

Notices

Rate this Entry

Syslog server in rhel5

Posted 12-02-2011 at 03:48 AM by pantdk

#################################################################################################
syslog server 192.168.0.120
##################################################################################################
[root@deepak ~]# mkdir /var/client/

[root@deepak ~]# vi /etc/syslog.conf

192.168.0.20
*.* /var/client/192.168.0.20.log

192.168.0.20
*.* /var/client/192.168.0.20.ker.log

[root@deepak ~]# vi /etc/rc.local
syslogd_enable="YES"
syslogd_flags="-a 192.168.0.20 -v -v"

[root@deepak ~]# service syslog restart
####################################################################################################
CLIENT SERVER CONFIGURATION
CLIENT 192.168.20
####################################################################################################
[root@pant ~]# vi /etc/syslog.conf
*.* @192.168.0.120

If a PID is returned, the server has been restarted successfully,
and client configuration may begin. If the server has not restarted,
consult the /var/log/messages log for any output.

#pgrep syslog (if syslog is running then we can see the pid if syslog not running
that will show error)

[root@pant ~]# logger "hi to all" (this is the testing purpose throght this command
we are sending the "hi to all" log to the server)
#tail -f /var/log/messages
Posted in Uncategorized
Views 733 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration