System -> Settings -> Logging -> 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.
The 'Local Logging - Disable writing log files to the local disk' option corresponds to the `disablelocallogging` configuration paramter in the back end. If the option is checked, the logic appears to skip over creating several syslog directives which would result in logs being written to disk; effectively not logging anything. However, if I'm reading it right, this only appears to occur if 'Disable circular logs' is unchecked. I.e. `clog` logs.So unless 'Disable circular logs' is unchecked, logs will always be written to disk regardless of the 'Local Logging' setting. This is unlikely to be intentional behaviour. If your goal is it minimise writes to disk, the current best option is use of '/var RAM disk' (as already suggeted) and a small number for 'Preserve logs (Days)'.
Thank you for your research!
Just among us.. If you made a poll, and asked 100 random opnsense admin, how many would know this is how this logging thing works in opnsense 21.1? As the docs in this topic are unhelpful, even worse completely misleading the reader, as usual very frequently.
Bug report?
Bug fix! https://github.com/opnsense/core/commit/6f7744993