asokolsky
Cadet
- Joined
- Mar 11, 2012
- Messages
- 5
TrueNAS Scale uses syslog-ng with configuration in `/etc/syslog-ng/syslog-ng.conf`.
My plan:
I created a dedicated dataset and mounted it at `/mnt/bmp/logs/`. Log rotation to be addressed later.
Re-Configure syslog-ng
I created `/etc/syslog-ng/conf.d/remote.conf`:
For context: I run TrueNAS Scale in a VM with SATA controller passed through.
To examine the logs I ssh into TrueNAS. There is no log analyzer.
My plan:
- leave local logs (those coming from TrueNAS) intact;
- accept messages from the remote clients sent to UDP port 554;
- store such logs in a persistent dataset.
I created a dedicated dataset and mounted it at `/mnt/bmp/logs/`. Log rotation to be addressed later.
Re-Configure syslog-ng
I created `/etc/syslog-ng/conf.d/remote.conf`:
Code:
source s_network { syslog(transport("udp")); }; destination d_network { file("/mnt/bmp/logs/$HOST/$PROGRAM.log" create-dirs(yes) owner("root") group("root") perm(0777)); }; log { source(s_network); destination(d_network); };
For context: I run TrueNAS Scale in a VM with SATA controller passed through.
To examine the logs I ssh into TrueNAS. There is no log analyzer.
Last edited: