Hi Jason,
Yes, its through redirect – I guess I have a workaround on this in the current setup, so will monitor and see how performs.
Thanks for your help,
Michelle
Hi Jason,
Yes I have modified the init script to create PKF logs. If I just leave the lora-logging.conf as follows all works :
/var/log/lora-*.log {
size 512k
rotate 4
compress
copytruncate
missingok
postrotate
}
Is a restart of the packet forwarder required – normally we would not restart unless there was a configuration change, or loss of power.
Thanks,
Michelle
Hi Jason,
I added the following to /etc/logrotate.d/lora-logging.conf (taken from
/var/log/lora-*.log {
size 512k
rotate 4
compress
copytruncate
missingok
postrotate
set -e;
/usr/bin/killall -HUP lora_pkt_fwd || true;
/usr/bin/killall -HUP lora-network-server || true;
endscript
}
While it does rotate the log files, once the packet forwarder restarts it does not log to /var/log/lora-pkt-fwd-1.log. The gw is running 1.7.4.
regards,
Michelle
Hi,
Came across this issue on a gateway, where the packet forwarder logs filled up disk space – implemented the fix above, and although it does rotate the logs, when the packet forwarder is restarted it doesn’t generate any further logs. Omitting the packet forwarder restart from /etc/logrotate.d/lora-logging.conf file seems to fix this – is a restart of the packet forwarder a requirement ?
Thanks,
Michelle