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
- Clicking on Radio button hangs for MFC based dialog Application
- zFeeder – Making PHP 5.3 + compatible, solving ‘Function ereg_replace() is deprecated’
- How to multilingualize or localize URL in Gallery2 – enhancement of multilang module to create multilingual URLs, Multi-language URL for SEO with Multi Language Module
- Fix for mergelog, fails with error “abort due to a problem” for dummy records of apache access logs
- Shepherds life in mountain
- The modern marriage culture among mate
- Do you know that barter system still exists in most villages in uttarakhand, may be true for many other parts of India also
- How to catch copy paste from explorer using shell extension? ICopyHook alternative for files and folder
- How to convert ASCII/UNICODE string to hex string? Function/API to convert to hex string
- How to solve ‘ReadFile hangs’ for named pipe client/server – sample working code for named pipe
October 30th, 2010 at 1:33 am
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 …
October 30th, 2010 at 1:35 am
a fixed version also should have a new version number to show at a glance it’s a NEWER version. ( also zFeeder version)