Projects / multisort


multisort can merge multiple httpd logs from a single website distributed on multiple hosts (through round-robin DNS, for example) into a single date-ordered log. It's useful for preprocessing logs before feeding them to analyzers. It's written in C and is quite fast.


Recent releases

  •  28 Oct 1999 19:48

    Release Notes: Version 1.1 has more robust error checking and will not segfault on bad input.

    •  14 Jan 1999 21:11

      Release Notes: Initial version.

      Recent comments

      26 Oct 2003 02:43 chongo

      multisort v1.1.2 rollup patch
      I use multisort in conjunction with the
      Unfortunately multisort v1.1 has a few minor problems.
      Several patches were sent to the author.
      I do not know if he received them because I never
      received a reply.

      I recommend that multisort users consider looking at my
      multisort v1.1.2 rollup patch page.
      That page contains a patch to multisort v1.1, as well
      as a revised multisort source that I call multisort v1.1.2.

      The unofficial
      multisort v1.1.2 rollup patch fixes a number of issues
      related to multisort v1.1:

      * Fixed sort bug where
      01/Feb/2001:03:26:15 was incorrectly
      sorted before
      * Fixed bugs related to very old dates and dates far in
      the future
      * Fixed bugs related to processing empty input files
      * Correctly distinguishes between file EOF and read
      * Allows multisort to just process a single file (addresses
      wish item in an above comment)
      * Added slightly better sanity checks on timestamp
      string formats
      * Fixed a bug where multisort could hang on an I/O
      * Correctly computes POSIX Seconds since the
      Epoch values with full leapyear rules
      * Speedup as per
      Demiddelaer's patch (see a previous comment)
      * Added -m maxage which will output only
      lines less than or equal to maxage
      seconds old instead of all lines
      * Updated the usage message

      NOTE: My rollup v1.1.2 patch is obviously unofficial.
      Comments welcome.

      20 Mar 2002 08:08 cybert

      Re: critiques
      If you want it to be faster (and yes it can be *faster*), you can use an unofficial patch here:

      19 Sep 2001 00:15 rbgrn

      This is a fast little util! Not only that, but it is a single file, seems pretty effecient.

      My one qualm is that I am required to specify a second input file. It makes the util that much more diverse just being able to take a single file or 30 files. This really isn't a big deal, but sometimes files are already merged and just simply need to be sorted. Anyway, good work :)


      Project Spotlight


      A Fluent OpenStack client API for Java.


      Project Spotlight

      TurnKey TWiki Appliance

      A TWiki appliance that is easy to use and lightweight.