merging daily logfiles

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oliver Spiesshofer

    merging daily logfiles

    Hi,

    I switched the server my webpage was hosted on and now the logfile format
    is different.

    the old one are daily logfiles, in the format

    mydomain.net.ac cess_log.01Feb2 004

    now I would like to merge all of them into one big one, so my weblog
    software (awstats) can read them in one go, and maybe even copy them
    together with the new one. The format of the log is the same. What would be
    the best way to do that?

    thanks

    Oliver

  • Owen Jacobson

    #2
    Re: merging daily logfiles

    On Mon, 16 Feb 2004 14:30:50 +0000, Oliver Spiesshofer wrote:
    [color=blue]
    > I switched the server my webpage was hosted on and now the logfile format
    > is different.
    >
    > the old one are daily logfiles, in the format
    >
    > mydomain.net.ac cess_log.01Feb2 004
    >
    > now I would like to merge all of them into one big one, so my weblog
    > software (awstats) can read them in one go, and maybe even copy them
    > together with the new one. The format of the log is the same. What would be
    > the best way to do that?[/color]

    On a unix system:

    $ cat mydomain.net.ac cess_log.??Feb2 004 > access_log.Feb2 004

    will merge all the february logs (though with no real respect to the order
    they should be merged in) by concatenating them end-to-end.

    --
    Some say the Wired doesn't have political borders like the real world,
    but there are far too many nonsense-spouting anarchists or idiots who
    think that pranks are a revolution.

    Comment

    Working...