[clamav-users] Setting up logrotation
Lars Åhman
lars.a.ahman at student.jyu.fi
Tue Sep 24 17:36:03 UTC 2019
Im running clamav as a daemon on a fedora and basically keep it running
24/7 except for an occasional update every now and then. I want the main
clamd log to rotate and have the LogFileMaxSize set to some small amount
for testing purposes and LogRotate set to yes. I had no prior experience
with any log rotation and here I learned that just these settings alone
won't suffice to get the logs to rotate. Correct me if I'm wrong, but I
think I have to set up a script to /etc/logrotate.d/ as well. In
/etc/logrotate.d/ the only clamav related file is called "clamav-update",
though. Nothing clamd related. Im pretty lost with the whole log rotation
thing as I can't understand the connection between the scan.conf settings
and the inbuilt logrotate on my fedora.
If possible I want to be able to keep running clamd without interruption
while rotating logs when they get too big. How can I achieve this? What
configurations do I have to do? What scripts do I have to set up? How can I
affect the names of the stored logs?
Sorry for such a messy question, I'm really lost with this log rotation
thing and I think I'd need someone to walk me through the whole process.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20190924/988ba0c6/attachment.htm>
More information about the clamav-users
mailing list