No need to copy logs.  Just specify a wildcard in the LOGFILE, something
like

LOGFILE "/var/log/httpd/access_log*"

Analog will automatically look at all the logs.  (Our site rotates logs
daily, so we get between 28 and 31 log files each month.  No trouble at all
for Analog.)

Tom Haapanen
[EMAIL PROTECTED]


-----Original Message-----
From: Bertrand Leroy [mailto:[EMAIL PROTECTED]]
Sent: Sunday 01 September 2002 07:36
To: [EMAIL PROTECTED]
Subject: RE: [analog-help] Month spelled out in date


Hello all,

I have now been using Analog 5.24 for a month now and this to my great
satisfaction ... thanks a lot to Steven Turner and all contributors!

I do have a wee issue though, nothing to do with the program itself, but
with my ISP ....

The access log is saved in the 'normal' folder with the name access_log
...... however, as I realised today, when a new month starts, the previous
month's log is then saved under access_log.1 and a new (at first empty)
access_log file is created ..... I would imagine that on the 1st of October,
the september log will be saved under access_log.2, the october log
access_log.3 etc .... how would I go about to collate all the logs? ... I am
thinking of the following:
- create a new file called master_access_log
- loop through all the files in the folder
- i = 1, copy the contents of access_log.i in the master_access_log file, do
i+1, until no file found error .. then copy contents of access_log at the
bottom of the contents of the file master_access_log ..... does this make
sense? .... does anybody know how to do this?

I hope someone can provide me with some good pointers,

thanks in advance,

Kindest regards,

Bertrand Leroy.
+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to