Re: How to get each file status when scan a ditrtectory using clamdscan

crazy thinker <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.user,gmane.comp.security.virus.clamav.devel
Message-ID <CAM2jGMMy1ymKOkiT21ZRGWazuEAk81ikrZRJGf1Dh3iyBHhPnA@mail.gmail.com>
Hi,

I would you like to  get  each file status call back  in *Clamdscan output*
 while perfrom scan over a dirtectory using *clamdscan*. but i able to get
a  file status call back *(OR | ERROR| FOUND)* in *Clamdscan output*  when
i perfrom scan over a *single file.*


@Steve Basford

Thanks for reply. but it won't work to get each file status call back
in *Clamdscan
Output. *when perform scan over a dirtectory(ies).i already tried  that. By
enabling *LogClean*, we can  print the each file status in *Clamd.log *not
in *Clamdscan output.*

I think we  need to slight code changes  in ClamAV   Code Base

@CamAV Dev Team

Please could anyone from ClamAV Dev team would help me  on this

*case -1*

*Admin-11s-MacBook-Air:~ sagampa$ /usr/local/clamav/bin/clamdscan
/Users/sagampa/Desktop/n1905.pdf *

*/Users/sagampa/Desktop/n1905.pdf: OK*


*----------- SCAN SUMMARY -----------*

*Infected files: 0*

*Time: 3.892 sec (0 m 3 s)*

*Admin-11s-MacBook-Air:~ sagampa$ *


*case -2*

*Admin-11s-MacBook-Air:~ sagampa$ ls -alh /Users/sagampa/Desktop/sample *

*total 15224*

*drwxr-xr-x   5 sagampa  staff   170B Oct  4 18:34 .*

*drwx------@ 34 sagampa  staff   1.1K Oct  4 18:34 ..*

*-rw-r--r--   1 sagampa  staff   5.5M Sep 28 18:53 lib.zip*

*-rw-r--r--@  1 sagampa  staff    67K Aug 30 14:01 libltldl.zip*

*-rw-r--r--@  1 sagampa  staff   1.9M Jul 14 18:57 pcre2-10.21.tar.gz*

*Admin-11s-MacBook-Air:~ sagampa$ *


*Admin-11s-MacBook-Air:~ sagampa$ /usr/local/clamav/bin/clamdscan
/Users/sagampa/Desktop/sample *

*/Users/sagampa/Desktop/sample: OK*


*----------- SCAN SUMMARY -----------*

*Infected files: 0*

*Time: 5.581 sec (0 m 5 s)*

*Admin-11s-MacBook-Air:~ sagampa$*






On 4 October 2016 at 15:21, Steve Basford <[email protected]>
wrote:

>
> On Mon, October 3, 2016 6:05 pm, crazy thinker wrote:
> > Hi,
> >
> >
> > when i  scanned  a dirtectory using clamdscan, i could get only error and
> >  virus file infected files status in output.but i would like to see each
> > file status(including "OK" status also ) when i perform scan over sinle
> > dirtectory / multiple dirtectories
> >
>
> > how does it can be achived? could anyone  please help me in this...
>
> clamd.conf...
>
> # Log time with each message.
> # Default: no
> LogTime yes
>
> # Also log clean files. Useful in debugging but drastically increases the
> # log size.
> # Default: no
> LogClean yes
>
> --
> Cheers,
>
> Steve
> Twitter: @sanesecurity
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml
>
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.