lost and found ( for me ? )

Fedora12: replace rsyslog with syslog-ng

Fedora12: rsyslog -> syslog-ng

[root@localhost ~]# /etc/init.d/rsyslog stop
システムロガーを停止中:

# cp /etc/rsyslog.conf /etc/rsyslog.conf.org

# rpm -e --nodeps rsyslog

[root@localhost ~]# yum install -y syslog-ng

起動スクリプトの設定

[root@localhost ~]# chkconfig --list | grep -i syslog
syslog-ng 0:off 1:off 2:off 3:off 4:off 5:off 6:off

[root@localhost ~]# chkconfig syslog-ng on

[root@localhost ~]# chkconfig --list | grep -i syslog
syslog-ng 0:off 1:off 2:on 3:on 4:on 5:on 6:off

設定ファイル

/etc/syslog-ng/syslog-ng.conf

起動

# service syslog-ng start
syslog-ng を起動中: [ OK ]

外部からリッスンする場合

/etc/syslog-ng/syslog-ng.conf

syslog-ng.conf の下記の行をコメントアウト

udp(ip(0.0.0.0) port(514));

# /etc/init.d/syslog-ng restart

[root@localhost syslog-ng]# netstat -an | grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:*

[root@localhost syslog-ng]# lsof -i:514
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
syslog-ng 1383 root 5u IPv4 8679 0t0 UDP *:syslo

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.