C++ wxWidgets Linux Win32 OS X Autoconf Bakefile Boost GCC GNU IMAP MSVC Perl Python SMTP STL TCP/IP Threads Unix ZSH

apache-splice-logs

Overview

apache-splice-logs is a very simple Perl script which can be used to combine several Apache log files covering the same time period into a single log file with the entries in chronological order. It is useful for analysing the log files of several servers with software such as AWStats.

Here is an example of using it:

$ ./apache-splice-logs server1.log server2.log > all.log

Download

The script is available at apache-splice-logs and there is no installation required but you must have a working Perl, see the requirements section below.

Requirements

You need a working installation of Perl and CPAN to be able to install autodie and HTTP::Date modules if you don't have them yet. No specifically recent version of neither Perl nor these modules is required (although it was only tested with 5.10 and 5.12 so please let us know if it doesn't work with 5.8 or earlier versions for you).

Usage Instructions

The script accepts any number of files (including one, although this is not very useful) on the command line and outputs all of their entries in chronological order on the standard output.

The files must be in Apache common log format or any other format using similar structure (e.g. combined), the script only relies on having the date in the fourth field of each line.

License

This script is Free Software released under BSD license.

June 23, 2015
Release of where-included: a new tool for C/C++ programmers for finding the header file dependencies.
July 28, 2014
A new release of Bakefile, a makefile generator tool, is now available.
July 20, 2014
We released a Munin plugin allowing to monitor the parameters of Freebox (French ISP modem).
November 11, 2013
wxWidgets 3.0, the first stable release of wxWidgets since several years, is now available.
September 1, 2013
Yahoo! Groups redesign has unfortunately made inoperable our popular yahoo2mbox script.
August 22, 2013
Added apache-splice-logs tool page.
March 31, 2013
Added new svn-to-git migration article.
August 6, 2012
Minor mladmin update: fix the script to work with recent Perl versions.
July 25, 2012
New diff-pdf tool description added.
April 27, 2012
wxWidgets training course proposed by TT-Solutions has been updated to cover version 3.0, please see training page for more information including the plan and some examples.
December 5, 2011
Another new script to help dealing with removing #pragma once from your code if needed.