OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: mbunkus on April 12, 2022, 11:05:22 AM

Title: view clog files in shell
Post by: mbunkus 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!
Title: Re: view clog files in shell
Post by: franco on April 12, 2022, 11:53:23 AM
circular logging is gone. You can use "opnsense-log" utility to access logs more easily, it also has a manual page.


Cheers,
Franco