Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log the size of scanned stream and elapse time #1385

Open
ralfhauser opened this issue Oct 8, 2024 · 2 comments
Open

log the size of scanned stream and elapse time #1385

ralfhauser opened this issue Oct 8, 2024 · 2 comments

Comments

@ralfhauser
Copy link

ralfhauser commented Oct 8, 2024

Describe the feature request

We would like to analyze timing issues with streamed scans.
We set in /etc/clamav/clamd.conf

LogClean yes

Unfortunately, in the log we do not see the size of the stream nor the elapse time.

Especially if the LogVerbose true is set.

In /var/log/clamav/clamav.log currently we only see

Tue Oct 8 15:44:20 2024 -> instream(127.0.0.1@53888): OK

@ralfhauser
Copy link
Author

Interesting was that the same 17mb pdf takes approx 50 secs. and during a second try, only approx <=4 secs

@ralfhauser ralfhauser changed the title log size of scanned stream and elapse time log the size of scanned stream and elapse time Oct 8, 2024
@micahsnyder
Copy link
Contributor

The second scan would be fast because clamd keeps a relatively small cache of clean files. You can disable the cache with the clamd.conf option:
DisableCache yes

You can increase the size of the cache with: CacheSize <some custom value in bytes>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants