Forum Moderators: DixonJones
I do not want...
accesslog-jan-01-2007.log
accesslog-jan-02-2007.log
accesslog-jan-03-2007.log
accesslog-jan-04-2007.log
accesslog-jan-05-2007.log
accesslog-jan-06-2007.log
I do want...
accesslog-jan-2007.log
accesslog-feb-2007.log
accesslog-mar-2007.log
accesslog-apr-2007.log
accesslog-may-2007.log
I need to find a program that combines daily access logs in to monthly access logs. I download them gzipped so I'd prefer something that does not require me to extract the files. I'm basically need automation to continue statistical analysis. I am only open to a solution to my problem and will not consider using 365 separate log files to extract, combine, and maintain especially when I have to crop off the last four hours of the previous day on to the last log file to begin with! This is exceptionally important and I am not finding anything in the search engines.
- John
*IMPORTANT EDIT* - While I've tried several flavors of Linux I can not cat these files in Linux, this has to be an XP compatible program/method of relative ease. Since I am testing every browser under the sun (and not) combined with the fact that there is no humanly normal method of getting a nightly build to run on Linux I'm staying with XP for the foreseeable future.
[edited by: JAB_Creations at 8:15 pm (utc) on April 20, 2007]
cat to collate the files: man cat for more information, or this Red Hat guide [redhat.com].