[analog-help] excluding a timespan in the middle of FROM, TO

Klaus Johannes Rusch KlausRusch at atmedia.net
Mon Nov 5 09:06:00 PST 2007


janet ward wrote:
> I want to exclude a part of the day from my day calculations (this seems
> to be the only way to remove a unidentifiable robot that went through
> during the time to be excluded).
>
> I want to exclude from 11:45 to 11:51.
>
> The FROM and TO parameters appear only to allow me to exclude *before*
> 11:45 and *after* 11:51, whereas I want to exclude *after* 11:45 and
> *before* 11:51.
The only solution I can think of without modifying the code is filtering 
the requests before analog processes the log file, either by reading 
from stdin and filtering using grep, or by using a filter as a preprocessor.

cat log | grep -v -f file-with-date-time-patterns-to-exclude | analog ...

-- 
Klaus Johannes Rusch
KlausRusch at atmedia.net
http://www.atmedia.net/KlausRusch/



More information about the analog-help mailing list