[BlueOnyx:07928] Re: log issues
Darrell D. Mobley
dmobley at uhostme.com
Sun Jul 31 19:50:49 -05 2011
> -----Original Message-----
> From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-
> bounces at mail.blueonyx.it] On Behalf Of Chris
> Sent: Sunday, July 31, 2011 12:14 AM
> To: blueonyx at blueonyx.it
> Subject: [BlueOnyx:07927] log issues
>
> I been using Blueonyx for years now and like it very much.
> Lately after a few patch I have been getting some issues with my log
> files.
> Here is an example of what I have been getting:
>
> /etc/cron.daily/logrotate:
>
> /usr/bin/analog: analog version 5.32/Unix
> /usr/bin/analog: Warning L: Large number of corrupt lines in logfile
> stdin:
> turn debugging on or try different LOGFORMAT
> (For help on all errors and warnings, see docs/errors.html)
> Current logfile format:
> %v %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f" "%B"\n
> %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f" "%B"\n
> %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r" %c %b "%f" "%B"\n
> %S %j %u [%d/%M/%Y:%h:%n:%j] "%r" %c %b "%f" "%B"\n
>
> I know just enough to be dangerous in Linux but by far not an expert.
> I would appreciate any help with this.
This will eventually disappear on its own, but it will come back.
If you truly want to fix it, edit /etc/cron.hourly/log_traffic and look for
these lines:
printf("Other - - %s \"GET /input HTTP/1.1\" 200 %s \"\" \"\"\n", date,
traffic["otherin"])
printf("Other - - %s \"GET /output HTTP/1.1\" 200 %s \"\" \"\"\n", date,
traffic["otherout"])
printf("Other - - %s \"GET /forward HTTP/1.1\" 200 %s \"\" \"\"\n", date,
traffic["otherforward"])
Edit the second "%s" in each line, change it to "%d".
printf("Other - - %s \"GET /input HTTP/1.1\" 200 %d \"\" \"\"\n", date,
traffic["otherin"])
printf("Other - - %s \"GET /output HTTP/1.1\" 200 %d \"\" \"\"\n", date,
traffic["otherout"])
printf("Other - - %s \"GET /forward HTTP/1.1\" 200 %d \"\" \"\"\n", date,
traffic["otherforward"])
See: http://www.blueonyx.it/pipermail/blueonyx/2009-December/003097.html
This applies to BX and BQ.
More information about the Blueonyx
mailing list