On Wed, Sep 4, 2013 at 8:19 PM, Chastity Blackwell < [email protected]> wrote:
> Working further on my templates for dynamic logfile naming, I'd like to > name our log archives after the time in UTC (which is unfortunately not > the current system time at the moment) instead of their local time zone. > Is there a good way to do this that will not cause undue overhead? Our > application is pretty high volume, and I'm worried that doing a lot of > scripting to figure out the times will not be a good thing for the > processing rate. Can I use /etc/default to tell rsyslog what time zone > to use or something similar? > > Just to clarify what I'm looking for, during 0900-0915 of 4 Sept 2013 > PDT, I'd like files to go in: > > /logs/events/2013_09/04/event-2013-09-04-16-00.gz > > (because 0900 PDT is 1600 GMT) > > If this isn't possible it's not the end of the world for me, but it > would be convenient -- our biggest concern right now is what happens > during the end of DST in November. > > There is currently no such capability per se, but I have just added experimental code to do timezone offsets (at the input level, though). A bigger problem is that I do not want to replicated all the timezone handling, and I have to admit I currently do not have a good idea to do it smartly (aka without implementing the whole zone handling from scratch...). Rainer > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

