By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,610 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,610 IT Pros & Developers. It's quick & easy.

merging daily logfiles

P: n/a
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.access_log.01Feb2004

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

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Mon, 16 Feb 2004 14:30:50 +0000, Oliver Spiesshofer wrote:
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.access_log.01Feb2004

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?


On a unix system:

$ cat mydomain.net.access_log.??Feb2004 > access_log.Feb2004

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.

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.