@ -205,8 +205,8 @@ To register syslog targets, the :code:`<plugin>_syslog()` function should return
..Note::
As of OPNsense 19.7 Syslog-NG is included in our base system, when not using circular logs, these files will
only be used to identify applications for custom syslog remote targets in :menuselection:`System->Settings->Logging / targets`.
As of OPNsense 19.7 Syslog-NG is included in our base system, these files will only be used to identify applications
for custom syslog remote targets in :menuselection:`System->Settings->Logging / targets`.
To test if a service registration functions properly, just restart the syslog facility:
@ -225,6 +225,12 @@ To test if a service registration functions properly, just restart the syslog fa
When running into issues, always make sure to manually restart syslog-ng first (:code:`service syslog-ng restart`), definition errors won't
be written into any log.
..Note::
In case additional source sockets should be used by Syslog-NG you can add files in :code:`/usr/local/opnsense/service/templates/OPNsense/Syslog/sources/`
containing definitions.
The `001-local.conf <https://github.com/opnsense/core/blob/22.1.7/src/opnsense/service/templates/OPNsense/Syslog/sources/001-local.conf#L5>`__ file
Disable circular logs Disable legacy circular logging and switch to regular file logging
GUI Log Entries to Display Number of log entries displayed in the GUI.
Log File Size (Bytes) (circular logs) Maximum size of circular logs (which most OPNsense log files are)
Preserve logs (Days) (when circular logs are disabled) configures the number of days to keep logs.
Preserve logs (Days) Configures the number of days to keep logs.
Log Firewall Default Blocks Turning these off means that only hits for your custom rules will be logged.
Web Server Log If checked, lighttpd errors are displayed in the main system log.
Disable writing log files to the local disk Useful to avoid wearing out flash memory (if used). Remote logging can be used to save the logs instead if desired.
Reset Logs Clear all logs. Note that this will also restart the DHCP server, so make sure any DHCP settings are saved first.