We are using clamav
antivirus on our GCP instances.
We are expected to review logs generated by its daemon scan.
But the daemon is not printing any logs at file.
Blank flies are generated at /var/logs/clamav
Also, we observe below logs at clamdscan.log
file
--------------------------------------
ERROR: Could not connect to clamd on LocalSocket /var/run/clamav/clamd.ctl: No such file or directory
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.001 sec (0 m 0 s)
Start Date: 2024:03:26 01:00:01
End Date: 2024:03:26 01:00:01
--------------------------------------
Clamav Directory
Please help on how do we achieve daemon scan logs for clamav ?
1
I’ve had the same problem, and I haven’t found a way of configuring this via Clamav.
As a workaround I’ve added a cron that runs the a daily scan.
...
/usr/bin/clamscan -r -i --remove / > /var/log/clamav/clamav-daily-scan.log
...
I hope this has helped you
1