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

Download the fixed package

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

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

  1. Solutions of Love Says:

    Another excellent solution for that zmerge problem is to fix it and have a fixed version HERE for download. A typical user / site owner has normally little to no time to learn all the fixing. Think for example 1 million user each patching = 5 minutes x 1’000’000 = 5 million minutes or more time consumed vs 1 coder patching once for all = 5 minutes time incl upload.
    since zmerge no longer has maintainer – someone with BIG heart may adopt and keep current for this world on HIS website. may be look into mirror and may be you find someone with big or growing heart ??
    The very same also applies to zFeeder problem/fix …

  2. Solutions of Love Says:

    a fixed version also should have a new version number to show at a glance it’s a NEWER version. ( also zFeeder version)

Leave a Reply