Reading logfiles on OpenWrt

If you are used to Linux systems, you know that logfiles are usually located in /var/log/ - but there is only three files in that directory on OpenWrt:

root@OpenWrt:~# ls /var/log/
lastlog   messages  wtmp
root@OpenWrt:~# cat /var/log/*
Sep 21 15:56:26 OpenWrt syslog.info syslogd started: BusyBox v1.11.2
root@OpenWrt:~#

So, to read the logfile from syslogd you should use the logread command, which outputs the messages in syslogd's circular buffer.


Written by Jannich Brendle man 21 september 2009 In How to

tags: howtoOpenWrtlinux

Related posts

social