Remote Syslog: sending gokrazy logs over the network
If you update your gokrazy installations daily, as we recommend you do, logs will be cleared daily as a side effect of rebooting the device. You can use Remote Syslog to persist logs elsewhere for later analysis.
Client side (gokrazy)
To enable remote syslog, you need to configure a target by creating the file
remote_syslog/target on the permanent data partition.
I recommend using a (static) IP address for increased reliability, so that remote syslog works even when DNS does not.
Server side (syslog-ng)
To run a syslog server on gokrazy, check out https://github.com/gokrazy/syslogd.
If you want to run your syslog server on a regular Linux distribution, this is
how I instructed syslog-ng via its
/etc/syslog-ng/syslog-ng.conf to write syslog messages it received from
e.g. host gokrazy to /var/log/remote/gokrazy-log: