Fix for mergelog, fails with error “abort due to a problem” for dummy records of apache access logs

If you are getting “abort due to problem” for apache access logs for dummy records when your run mergelog (or zmergelog) then you fix the problem as follows:

1. Open mergelog.c file under src folder
2. Look for #define SCAN_OFFSET 9
3. Change it to #define SCAN_OFFSET 7

That’s all.

The problem is that the mergelog looks for the date string starting from 9th character (as set by SCAN_OFFSET) of a record.
With this changes it will look from 7th character. In a dummy record below the date field starts from 8th charachter.

::1 – - [13/Dec/2009:00:00:06 +0800] “OPTIONS * HTTP/1.0″ 200 – “-” “God is Love (internal dummy connection)”

Changing SCAN_OFFSET to 7, mergelog starts looking for the date field ( [13/Dec/2009:00:00:06 +0800]) from 7th character.

 

Recent Entries

Leave a Reply