Correct way to change from circular logs to regular files?

Started by astromeier, March 01, 2021, 07:56:06 PM

Previous topic - Next topic
Hi!
I recently upgraded to 21.1 and a new Qotom Hardware. The migration was flawless and after some days I wanted to switch from circular logging to the advised single file logging. The logs are stored local at opnsense system.

In "System: Settings: Logging" I checked "Disable circular logs", saved the change and the pushed "Reset Log Files" Button.
After some hours I saw that at least the HAProxy-, WebGUI- and Firmware-Logs are inactive now.
The NTP- and HAProxy log showed some entrys from service-startup bot no more ...
System backend and general logs, firewall log and so on are working.
A newly issued log file reset, services restart and reboot did not help.

Switching back to circular logs brougt all logging back....

Disabling circular logging again and the logs are empty....

What is wrong?

Stay secure!
Thomas

OPNsense 22.x / Qotom Q370G4 ram8G ssd256G

Try a reboot after changing the option
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

Thanks, lfirewall1234, but this didn't help:
QuoteA newly issued log file reset, services restart and reboot did not help.
Stay secure!
Thomas

OPNsense 22.x / Qotom Q370G4 ram8G ssd256G

Tested with OPNsense 21.1.3_3-amd64: HA-Proxy still doesn't log after switching to non-circular logging...
Anybody with same experience?
Stay secure!
Thomas

OPNsense 22.x / Qotom Q370G4 ram8G ssd256G

I didn't have logging working before switching to the new method nor after. I opened an issue on GitHub:

https://github.com/opnsense/plugins/issues/2386

I've got the same problem with the latest release:
OPNsense 21.7.1-amd64
FreeBSD 12.1-RELEASE-p19-HBSD
OpenSSL 1.1.1k 25 Mar 2021
os-haproxy (installed)   3.4

Circular logs work fine, same settings in HAProxy but non-circular logs only show start/stop entries.
I applied the suggestions in #280 but that didn't help

Is there a way to debug the logging to syslog-ng?

Joop