I’ll skip the pomp and circumstance and get right to it. Here are my steps for getting rsyslog to work on Orange JeOS:
- Load Orange JeOS
- login as root (password is qwerty)
- fix ip & mask in /etc/sysconfig/network-scripts/ifcfg-eth0 to match you network settings
- fix hostname & gateway in /etc/sysconfig/network
- fix nameserver in /etc/resolv.conf
- service network restart
- yum update
- shutdown –r now
- login as root again
- yum install ntp
- chkconfig ntpd on
- ntpupdate pool.ntp.org
- service ntpd start
- yum install rsyslog
- add “*.* /var/log/syslog” as the last line in /etc/rsyslog.conf
- add “-r” to SYSLOGD_OPTIONS in /etc/sysconfig/rsyslog
- service syslog stop
- service rsyslog start
- chkconfig syslog off
- chkconfig rsyslog on
- iptables –I RH-Firewall-1-INPUT 3 –p udp –dport 514 –j ACCEPT
- /etc/init.d/iptables save
That’s it. rsyslog should be running, iptables should allow incoming upd traffic and the log file /var/log/syslog should start to have data in it. You can pipe the data to mysql if you want, but that’s another config. :)
Enjoy the logging goodness!
No comments:
Post a Comment