OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: astromeier on March 01, 2021, 07:56:06 PM

Title: Correct way to change from circular logs to regular files?
Post by: astromeier on March 01, 2021, 07:56:06 PM
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?

Title: Re: Correct way to change from circular logs to regular files?
Post by: lfirewall1243 on March 01, 2021, 08:12:04 PM
Try a reboot after changing the option
Title: Re: Correct way to change from circular logs to regular files?
Post by: astromeier on March 01, 2021, 11:07:24 PM
Thanks, lfirewall1234, but this didn't help:
QuoteA newly issued log file reset, services restart and reboot did not help.
Title: Re: Correct way to change from circular logs to regular files?
Post by: astromeier on March 23, 2021, 02:45:37 PM
Tested with OPNsense 21.1.3_3-amd64: HA-Proxy still doesn't log after switching to non-circular logging...
Anybody with same experience?
Title: Re: Correct way to change from circular logs to regular files?
Post by: Brian Puccio on May 10, 2021, 07:34:19 AM
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
Title: Re: Correct way to change from circular logs to regular files?
Post by: Joop on August 17, 2021, 10:03:38 AM
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