Re: Selecting logs based on time range in TAI

[email protected] (Paul Jarc) Mon, 02 May 2005 10:47:57 -0400
Newsgroups gmane.comp.lib.libtai
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
Casey Allen Shobe - SeattleServer Mailing Lists <[email protected]> wrote:
> 2.  Generate TAI timestamps for a starting and ending time range
> (i.e. current UTC midnight and (current UTC midnight - 24 hours) for
> the daily report.

<URL:http://code.dogmap.org./runwhen/>
$ rw-match n ,H=0 next \
> rw-sub \$next d24H prev \
> sh -c '{ echo @$prev && echo @$next; } | tai64nlocal'
2005-05-02 00:00:00.000000000
2005-05-03 00:00:00.000000000

> 3.  Input timestamps to process which selects appropriate files from the
>     log directory based on filenames (including current if necessary), then
>     parses the file(s) and outputs only values within the given time range.

<URL:http://code.dogmap.org./djbdns/#logrange>
$ rw-match n ,H=0 next \
> rw-sub \$next d24H prev \
> logrange.pl \$prev \$next


paul