Re: Mulitple logs
Roy T. Fielding (fielding@kiwi.ics.uci.edu)
Fri, 20 Feb 1998 17:27:03 -0800
In message <34EB413C.E8041E89@usaovid.usouthal.edu>, Harmon Seaver writes:
>I'm running wwwstat on two different machines -- one Sun and one
>Linux -- both with Apache servers. The Sun machine runs wwwstat with no
>problem, but the Linux box (RedHat 4.2) divides the access.log up
>regularly so I have access_log, access_log.1, access_log.2, etc. with
>the latest being access_log itself.
> When I run wwwstat, it only looks at the latest one. I've tried
>putting the * wildcard on the default log thing in wwwstat.rc, but that
>doesn't work at all -- then I get an error message saying it can't find
>that file. From reading all the wwwstat docs it I see that it says that
>wwwstat reads a "sequence" of access_log files, so I'd think it would
>read all of them, but it doesn't.
In order to read multiple files, you need to put them on the command line
in the order to be read, like
wwwstat access_log.2 access_log.1 access_log
or
wwwstat `ls -1r access_log*`
....Roy