1
22.1 Legacy Series / view clog files in shell
« on: April 12, 2022, 11:05:22 am »
Hey,
I have several OPNsenses that were upgraded from earlier releases to v22, which went fine. Now I have the situation that the log files in /var/log are circular log files, but v22 doesn't come with the "clog" tool anymore. My Google fu wasn't strong enough to find an answer:
How do I view circular log files in the shell on v22?
I also don't see an option to disable clog files in "System" → "Settings" → "Logging" (anymore).
Those log files are definitely still used, and viewing entries via the web UI does work just fine (e.g. for haproxy), but often enough viewing them in the shell is so much better, especially in follow mode or when you need to grep through them.
Thanks!
I have several OPNsenses that were upgraded from earlier releases to v22, which went fine. Now I have the situation that the log files in /var/log are circular log files, but v22 doesn't come with the "clog" tool anymore. My Google fu wasn't strong enough to find an answer:
How do I view circular log files in the shell on v22?
I also don't see an option to disable clog files in "System" → "Settings" → "Logging" (anymore).
Those log files are definitely still used, and viewing entries via the web UI does work just fine (e.g. for haproxy), but often enough viewing them in the shell is so much better, especially in follow mode or when you need to grep through them.
Thanks!