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
> 
> -- 
> Bowie
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
> 
> 


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


releasemaster@svr-stage1:/tmp> sudo tail -500f clamd.log
Thu Dec  6 16:16:12 2012 -> +++ Started at Thu Dec  6 16:16:12 2012
Thu Dec  6 16:16:12 2012 -> clamd daemon 0.93 (OS: linux-gnu, ARCH: x86_64,
CPU: x86_64)
Thu Dec  6 16:16:12 2012 -> Running as user vscan (UID 65, GID 108)
Thu Dec  6 16:16:12 2012 -> Log file size limited to 2097152 bytes.
Thu Dec  6 16:16:12 2012 -> Reading databases from /var/lib/clamav
Thu Dec  6 16:16:12 2012 -> Not loading PUA signatures.
Thu Dec  6 16:16:14 2012 -> Loaded 315745 signatures.
Thu Dec  6 16:16:14 2012 -> TCP: Bound to address 127.0.0.1 on port 3310
Thu Dec  6 16:16:14 2012 -> TCP: Setting connection queue length to 15
Thu Dec  6 16:16:14 2012 -> LOCAL: Unix socket file
/var/lib/clamav/clamd-socket
Thu Dec  6 16:16:14 2012 -> LOCAL: Setting connection queue length to 15
Thu Dec  6 16:16:14 2012 -> Listening daemon: PID: 23854
Thu Dec  6 16:16:14 2012 -> Limits: Global size limit set to 104857600
bytes.
Thu Dec  6 16:16:14 2012 -> Limits: File size limit set to 26214400 bytes.
Thu Dec  6 16:16:14 2012 -> Limits: Recursion level limit set to 16.
Thu Dec  6 16:16:14 2012 -> Limits: Files limit set to 10000.
Thu Dec  6 16:16:14 2012 -> Archive support enabled.
Thu Dec  6 16:16:14 2012 -> Algorithmic detection enabled.
Thu Dec  6 16:16:14 2012 -> Portable Executable support enabled.
Thu Dec  6 16:16:14 2012 -> ELF support enabled.
Thu Dec  6 16:16:14 2012 -> Mail files support enabled.
Thu Dec  6 16:16:14 2012 -> OLE2 support enabled.
Thu Dec  6 16:16:14 2012 -> PDF support disabled.
Thu Dec  6 16:16:14 2012 -> HTML support enabled.
Thu Dec  6 16:16:14 2012 -> Self checking every 1800 seconds.
Thu Dec  6 16:16:17 2012 ->
/tmp/clamscan-franck-test/clamscan-franck-testclamscan-man.txt: OK

-- 
View this message in context: 
http://old.nabble.com/clamav-no-timestamp-in-the-logs-tp34756576p34767114.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