On Sun, 26 Sep 2010 20:02:42 +0100
John Horne <[email protected]> wrote:

> Hello,
> 
> Using ClamAV 0.96.2, for some reason over the weekend we have started
> to see these error messages in our freshclam log file:
> 
>     Sun Sep 26 19:25:55 2010 -> ERROR: SubmitDetectionStats: Incorrect
>     format of the log file (1)
> 
> This has occurred on more than one server, and as far as I can see the
> clamd and freshclam log files look fine.

freshclam needs lines ending like this:
: virusname FOUND

> Any ideas about this?

Apply this patch, then run freshclam --submit-stats again. It should
print exactly which line is causing problems in the logfile

diff --git
a/freshclam/manager.c b/freshclam/manager.c index 7a10243..afcfc80
100644 --- a/freshclam/manager.c
+++ b/freshclam/manager.c
@@ -698,7 +698,7 @@ int submitstats(const char *clamdcfg, const struct
optstruct *opts) *pt2 = 0;
 
        if(!(pt2 = strrchr(pt, ' ')) || pt2[-1] != ':') {
-           logg("!SubmitDetectionStats: Incorrect format of the log
file (1)\n");
+           logg("!SubmitDetectionStats: Incorrect format of the log
file (1): %s\n", line); ret = 1;
            break;
        }


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

Reply via email to