I think there is no such directive, though I barely remember that once I
created such a beast (but that may have been in our Windows toolset). I'd
suggest to check the doc if there is a directive that sounds like if could
disable an action for a given period. With filters, you could probably create
a big if where you check the hour part of the time and execute the action
only for hours "09", "10", ..., "20" (using 24hr clock).

HTH
Rainer

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Jonathan Mergy
> Sent: Wednesday, April 27, 2011 6:10 AM
> To: rsyslog-users
> Subject: Re: [rsyslog] Newbie - time range directive?
> 
> I am just going with stopping and starting rsyslog for now. Looked all
> over
> and unable to get something to filter to file from host during a time
> range.
> 
> Thanks
> 
> Jonathan
> ................................
> Jonathan Mergy <[email protected]>
> Director Of Technology
> Lick-Wilmerding High School
> 755 Ocean Ave, SF CA 94112
> P:415.585.1725 x365
> http://www.lwhs.org
> 
> 
> > From: Jonathan Mergy <[email protected]>
> > Reply-To: rsyslog-users <[email protected]>
> > Date: Tue, 26 Apr 2011 13:32:35 -0700
> > To: <[email protected]>
> > Subject: [rsyslog] Newbie - time range directive?
> >
> > Hiya,
> >
> > Looking through config samples and trying to dump logs from couple of
> hosts
> > but have a scenario where I am making the logs available to an
> external
> > vendor for analysis and only want to give them a few hours a day
> (typically
> > at peak usage.) I have the filters working and dumping to a log file
> and I
> > will rotate that daily or something but really need to limit the
> range
> > rsyslog uses to something like 9am to 2pm. Rsyslog will continue to
> get data
> > from the hosts, but right now is writing all data it gets.
> >
> > Is there a decent way to limit the timeframe of the logging via a
> directive?
> >
> > Thanks.
> >
> > Jonathan
> > ................................
> > Jonathan Mergy <[email protected]>
> > Director Of Technology
> > Lick-Wilmerding High School
> > 755 Ocean Ave, SF CA 94112
> > P:415.585.1725 x365
> > http://www.lwhs.org
> >
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com
> 
> 
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to