Remote logging
1. Configure the Ubuntu syslog server to accept remote logging. Edit /etc/default/syslog and restart sysklogd.
/etc/default/syslog:
SYSLOGD="-u syslog -r"
sudo /etc/init.d/ksyslogd restart
2. On the router set log_ip. log_ip is the IP address of your remote syslog server
uci set system.cfg1.log_ip=192.168.1.1
uci commit && reboot
3. On the syslog server check if it's working. 192.168.178.3 is the IP address of the router. For Ubuntu run:
tail -f /var/log/syslog
ubuntu@ubuntu-laptop:~/openwrt/kamikaze_7.07_atheros$ tail -f /var/log/syslog
Aug 2 17:02:21 localhost syslogd 1.4.1#20ubuntu4: restart (remote reception).
Aug 2 17:02:21 localhost kernel: [13346.400000] process `syslogd' is using obsolete setsockopt SO_BSDCOMPAT
Aug 2 17:02:24 localhost gconfd (root-9685): Der GConf-Server wird nicht verwendet und daher beendet.
Aug 2 17:02:24 localhost gconfd (root-9685): Beenden
Aug 2 17:07:17 192.168.178.3 kernel: wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Aug 2 17:07:22 192.168.178.3 kernel: wifi0: H/W encryption support: WEP AES AES_CCM TKIP
Aug 2 17:07:27 192.168.178.3 kernel: wifi0: mac 11.0 phy 4.8 radio 7.0
Aug 2 17:07:32 192.168.178.3 kernel: wifi0: Use hw queue 1 for WME_AC_BE traffic
Aug 2 17:07:37 192.168.178.3 kernel: wifi0: Use hw queue 0 for WME_AC_BK traffic
Aug 2 17:07:42 192.168.178.3 kernel: wifi0: Use hw queue 2 for WME_AC_VI traffic
Aug 2 17:07:47 192.168.178.3 kernel: wifi0: Use hw queue 3 for WME_AC_VO traffic
Aug 2 17:07:52 192.168.178.3 kernel: wifi0: Use hw queue 8 for CAB traffic
Aug 2 17:07:57 192.168.178.3 kernel: wifi0: Use hw queue 9 for beacons
Aug 2 17:08:02 192.168.178.3 kernel: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3
Aug 2 17:08:07 192.168.178.3 kernel: device ath0 entered promiscuous mode
Aug 2 17:08:12 192.168.178.3 kernel: br-lan: port 2(ath0) entering learning state
Aug 2 17:08:17 192.168.178.3 kernel: br-lan: topology change detected, propagating
Aug 2 17:08:22 192.168.178.3 kernel: br-lan: port 2(ath0) entering forwarding state
Aug 2 17:08:27 192.168.178.3 kernel: device ath1 entered promiscuous mode
Aug 2 17:08:32 192.168.178.3 kernel: br-lan: port 3(ath1) entering learning state
Aug 2 17:08:37 192.168.178.3 kernel: br-lan: topology change detected, propagating
Aug 2 17:08:42 192.168.178.3 kernel: br-lan: port 3(ath1) entering forwarding state
Aug 2 17:08:47 192.168.178.3 crond[622]: crond 2.3.2 dillon, started, log level 8
Aug 2 17:09:01 localhost /USR/SBIN/CRON[9866]: (root) CMD ( [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)
(Last edited by forum2006 on 2 Aug 2007, 16:19)