Bowie Bailey wrote:
> 
> On 12/6/2012 11:25 AM, franckm wrote:
>> Bowie Bailey wrote:
>>> On 12/6/2012 10:43 AM, franckm wrote:
>>>> Ok I've done that. LogTimes are shown (in a weird datetime format) but
>>>> the
>>>> file that I've just scanned is not listed at all:
>>>>
>>>>
>>>>> clamdscan
>>>>> /tmp/clamscan-franck-test/clamscan-franck-testclamscan-man.txt
>>>> /tmp/clamscan-franck-test/clamscan-franck-testclamscan-man.txt: OK
>>>>
>>>> ----------- SCAN SUMMARY -----------
>>>> Infected files: 0
>>>> Time: 0.003 sec (0 m 0 s)
>>> By default, clamd does not log clean files.  There is an option for that
>>> in clamd.conf...
>>>
>>> # Also log clean files. Useful in debugging but drastically increases
>>> the
>>> # log size.
>>> # Default: disabled
>>> #LogClean 1
>>>
>>
>> Thanks it works now but I am not getting the log line when a new file is
>> getting scanned. I only get the result (OK line)
>>
>> With clamscan in verbose mode I used to get:
>>
>>> clamscan --verbose
>>> /tmp/clamscan-franck-test/clamscan-franck-testclamscan-man.txt
>> Scanning /tmp/clamscan-franck-test/clamscan-franck-testclamscan-man.txt
>> /tmp/clamscan-franck-test/clamscan-franck-testclamscan-man.txt: OK
>>
>> ----------- SCAN SUMMARY -----------
>> Known viruses: 315745
>> Engine version: 0.93
>> Scanned directories: 0
>> Scanned files: 1
>> Infected files: 0
>> Data scanned: 0.01 MB
>> Time: 2.001 sec (0 m 2 s)
>>
>>
>> With clamdscan in verbose mode (LogVerbose yes) I get only the OK line
>>
>>
>> Thu Dec  6 16:16:17 2012 ->
>> /tmp/clamscan-franck-test/clamscan-franck-testclamscan-man.txt: OK
> 
> I don't think there is any way to replicate the verbose command line 
> behavior in the log file.  The log file will only log one line per file 
> scanned indicating whether it is clean or has a virus.
> 
> Is there really any value in logging that a file is being scanned and 
> then 2 seconds later logging that the file is clean?
> 
> -- 
> Bowie
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
> 
> 
Thanks.
In the context of a real-time ESB where message consumers expect a given
file to be scanned, it could be useful. If the scanning line is not shown,
troubleshooting is harder as you don't know if the problem is with the
antivirus software or the program that triggers it.

Also without this line it's harder to get stats. How long before a file gets
scanned (after it's reached our infrastructure) and how long it takes to
clear it.

If we can't measure, we can't improve.

I am not sure I understand why some features are provided by clamscan but
not by clamdscan and others are provided by clamdscan but missing from
clamscan.
-- 
View this message in context: 
http://old.nabble.com/clamav-no-timestamp-in-the-logs-tp34756576p34767286.html
Sent from the clamav-users mailing list archive at Nabble.com.

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to