How to use centos as a remote syslog server

April 18th, 2011

How to enable remote syslog on centos and store data coming in from
one or more devices on your centos machine.

Changes on the centos machine you want to receive syslog data:
(Turn on remote syslog service)

/etc/sysconfig/syslog

Change:
SYSLOGD_OPTIONS=”-m 0″
To:
SYSLOGD_OPTIONS=”-r -x m 0″

 

Set up permissions for each device you want to accept data from

edit
/etc/syslog.conf
Add:

+ip.of.device.1
local7.* /var/log/switch1.log
+ip.of.device.2
local7.* /var/log/switch2.log

# The plus in front of the IP indicates its a remote device.

# You can have as many devices you want log to the same file. The
entries are prefixed by thier IP or Hostname

# You can use host names if you want, they just need to be able to resolve.

# One last note, I think centos needs tabs in syslog.conf to separate columns not spaces.

Entry Filed under: Asterisk,Centos

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

September 2017
M T W T F S S
« May    
 123
45678910
11121314151617
18192021222324
252627282930  

Most Recent Posts