ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
ClamAV command line virus scan logs. How to only show virus
fannonland


Joined: 27 Feb 2012
Posts: 0
Reply with quote
I have trimmed down the ClamAV to just a few files and am going to run it on a schedule to a couple machines. I then want to run a job that will take the virusscan log and feed it into my database and parse out any problems.

Right now here is my command line.

C:\ClamAV\Clamscan -d c:\Clamav\database -l c:\virusscan.log -i -r c:\

But after it runs I get a log that has all the "Can't open file" and "Empty File" errors. I don't care. I just want the list of viruses if it gets infected. If I am clean I dont' want anything in that log file except 0 (Zero) viruses found.
View user's profileSend private message
dchip


Joined: 04 Apr 2012
Posts: 0
Reply with quote
C:\ClamAV\Clamscan -d c:\Clamav\database -l c:\virusscan.log -i -r --infected c:\

That should do it.
View user's profileSend private message
ClamAV command line virus scan logs. How to only show virus
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic