Tuesday, March 31, 2009

rsyslog on Orange JeOS

I’ll skip the pomp and circumstance and get right to it. Here are my steps for getting rsyslog to work on Orange JeOS:

  1. Load Orange JeOS
  2. login as root (password is qwerty)
  3. fix ip & mask in /etc/sysconfig/network-scripts/ifcfg-eth0 to match you network settings
  4. fix hostname & gateway in /etc/sysconfig/network
  5. fix nameserver in /etc/resolv.conf
  6. service network restart
  7. yum update
  8. shutdown –r now
  9. login as root again
  10. yum install ntp
  11. chkconfig ntpd on
  12. ntpupdate pool.ntp.org
  13. service ntpd start
  14. yum install rsyslog
  15. add “*.* /var/log/syslog” as the last line in /etc/rsyslog.conf
  16. add “-r” to SYSLOGD_OPTIONS in /etc/sysconfig/rsyslog
  17. service syslog stop
  18. service rsyslog start
  19. chkconfig syslog off
  20. chkconfig rsyslog on
  21. iptables –I RH-Firewall-1-INPUT 3 –p udp –dport 514 –j ACCEPT
  22. /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: