On Friday, October 01, 2004 7:00 PM [GMT],
Glenn Livet <[EMAIL PROTECTED]> wrote:

> Each day I want to run Analog to analyse only the *previous*
> day's activity.
>
> To do this I have so far been *manually* changing the TO & FROM
> dates in the config file to whatever *yesterday's* date is.
>
> Is there a command to automate switching the date?

Analog will work with relative dates, but you have to tell it to analyze
*.log for that technique to work. If you want to tell Analog to analyze
a specific logfile, then you need to call Analog with the name of that
logfile, and the logic you need depends on your OS, not on Analog.

You don't mention what OS you're running on, but if you're running on
Windows, and your webserver is rotating your logs at 00:00 GMT, then if
you are in the US (or anywhere West of GMT), this old post demonstrates
one way to do it:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg05834.html

It actually calculates todays date, but because IIS rotates logs (or
used to) based on GMT, you could run "todays" logs before midnight.

It is possible to extend the logic to calculate yesterdays date, but I
don't think I ever bothered doing it. Some of the logic required to
actually calculate yesterdays date is described in this post:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg06580.html

Aengus

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to