OpenWrt logging

Hi,

How do I set up logging via Luci?

It is asking for the external server ip address and server port! Do I need to be running a program, etc on that server?

Thanks,

Aaron

https://openwrt.org/docs/guide-user/base-system/log.essentials#network_logging
you need to receive the logs somewhere, no ?

1 Like

You need to be running syslog remote receiver, syslogd -r, on that host, it is a software program, not abackus.

1 Like

can't log sh-t using an abacus, my friend :slight_smile:

1 Like

This is how I I currently have the OpnWRT logging configured:

 config system
         option hostname 'OpenWrt'
         option timezone 'ACST-9:30ACDT,M10.1.0,M4.1.0/3'
         option ttylogin '0'
         option log_size '64'
         option urandom_seed '0'
         option compat_version '1.1'
         option description 'Bedroom Router'
         option zonename 'Australia/Adelaide'
         option log_proto 'tcp'
         option conloglevel '4'
         option cronloglevel '8'
         option log_ip '192.168.1.180'
         option log_file '/tmp/syslog'

   config timeserver 'ntp'
         list server '0.openwrt.pool.ntp.org'
         list server '1.openwrt.pool.ntp.org'
         list server '2.openwrt.pool.ntp.org'
         list server '3.openwrt.pool.ntp.org'

On the remote host or OpenWRT?

/tmp is RAM, you reboot, it's gone, assuming .180 is the IP of the device you want to be logging.

both, check the links at the bottom of the page you were given.

Thanks! I will make sure to change that when I have everything setup.

Collected errors:

  • check_data_file_clashes: Package syslog-ng wants to install file /sbin/logread
    But that file is already provided by package * logd
  • opkg_install_cmd: Cannot install package syslog-ng.

need to uninstall logd 1st.