At times, enabling logging for ClamAV can paint a better picture of any issues that may occur during the scan or specific files that may require your attention. This article will go through the process of enabling logging for ClamAV.
If you haven't already, ensure ClamAV is installed, you can find instructions on doing so here. You'll then need to locate the ClamAV configuration file, this can typically be found in the below location:
There are a few settings that allow you to customize the logging for ClamAV, the 3 main ones that we'll be focusing on here is:
grep -i ^#LogFile /usr/local/cpanel/3rdparty/etc/clamd.conf
These LogFile settings by default are commented out in a new ClamAV install. To enable them, they'll need to be uncommented using your preferred CLI editor. Once that's complete, you'll need to restart ClamAV to ensure these changes have taken place.
For additional LogFile settings to customize such as verbosity, you may refer to the clamd.conf manual found here.