Forum Moderators: DixonJones

Message Too Old, No Replies

Daily Access Log Combiner (Application)! Important

         

JAB Creations

8:04 pm on Apr 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't find a host that is NOT running log files on a daily basis. I need to keep my log files monthly. Daily logs decimate my automation and require an overly excessive amount of time dedicated to fixing the problem. For clarification...

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]

encyclo

8:12 pm on Apr 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use
cat
to collate the files:
man cat
for more information, or this Red Hat guide [redhat.com].

JAB Creations

8:25 pm on Apr 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the quick reply but as you can see in my edit (after speaking with my server admin about what options he had in mind) I knew the first reply would be exactly that. How can I collate files in XP?

- John

System

6:27 am on Apr 22, 2007 (gmt 0)

redhat



The following message was cut out to new thread by receptional. New thread at: analytics/3318698.htm [webmasterworld.com]
8:42 am on April 23, 2007 (GMT 0)