Log files are generated for all system and database activities. These logs are stored in the local log
file, runtime.log which is saved in the /etc/opt/Antivirus/
directory.
You can view and delete the local log files.
The logs for the Antivirus can be viewed from the appliance Web UI. The logs consist of Antivirus database updates, scan results, infections found, and so on. These logs are also available on the Auditstore > Analytics screen. You can view all logs, including those deleted, in the local file.
Perform the following steps to view logs.
Perform the following steps to delete logs from local file using the Web UI.
Perform the following steps to delete logs from local file using the CLI Manager.
Perform the following steps to configure log rotation and log retention.
Append the following configuration to the /etc/logrotate.conf file:
/var/log/clamav/*.log
{ missingok monthly size 10M rotate 1 }
For periodic log rotation, run the following command:
cd /etc/opt/Antivirus/
mv /etc/opt/Antivirus/runtime.log /var/log/clamav
ln -s /var/log/clamav/runtime.log runtime.log