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
- 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
- Finally on 19th day at 8pm we reached Badrinath