Red Hat Bugzilla – Bug 207071
long lines incorrectly handled by Apache's logresolve
Last modified: 2007-11-16 20:14:54 EST
Description of problem:
The logresolve ELF binary included in RHEL4 update 4 (and 3 these are the only
two versions I've tested) appear to incorrectly handle long lines in log files.
I think this is a very old bug which may have not been fixed because the Perl
script, logresolve.pl is commonly used instead of the C version of the
programme. However logresolve.pl doesn't appear to be part of Red Hat Enterprise
Archived bug report - http://archive.apache.org/gnats/3459
Version-Release number of selected component (if applicable):
Submit a log file containing lines longer than (i think) 1024 characters and
these lines will be split into at least two lines.
Steps to Reproduce:
1. /usr/bin/logresolve < logfile.log > resolvedfile.log
2. /usr/bin/wc -l logfile.log
3. /usr/bin/wc -l resolvedlogfile.log
Will reveal that resolvedlogfile.log has more lines than logfile.log. A diff of
the files (with the hostnames/IP addresses excised) this will reveal the
There should be the same number of lines in the source and destination files.
We can bump the length of the line buffer used to 10K or something easily
enough; thanks for the report.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.