Forum Moderators: DixonJones

Message Too Old, No Replies

Awstats.pl log analyzer

Reading archived web.log

         

Alternative Future

11:02 am on Mar 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

Having some problems with getting Awstats reading from my archived log file with the extension *.1.gz been playing around in the *.conf file with this line LogFile="../../logs/web.log" this line is obviously required to read the active log but not sure on what the syntax is for getting to also read from the archived file!?

Has anyone else got this properly functioning on their server? If so could you please share some thoughts on the matter on how it is working.

Many thanks and kind regards,

-gs

illich

1:05 pm on Mar 16, 2003 (gmt 0)

10+ Year Member



Try this:

LogFile="gzip -dc logfilename.gz ¦"

It's an usual unix pipe.

Alternative Future

1:24 pm on Mar 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi illich,

Should I still include the existing path i.e.
LogFile="../../logs/web.log" along with your suggestion of "gzip -dc logfilename.gz ¦" and if this is the case what is the full path/syntax to include it?

I really appreciate your help on the matter.

KR,

-gs

illich

6:32 pm on Apr 4, 2003 (gmt 0)

10+ Year Member



As I understand it, you can use any command there. So if you want to analyze two files - one normal, one gzipped, you can make a script like this:

cat ../../logs/web.log
gzip -dc logfilename.gz

And then add this script name followed with '¦' into awstats conf.