[rt-users] RT logs in wrong timezone

Wagner Pereira wpereira at pop-sp.rnp.br
Tue Aug 16 15:10:18 EDT 2011


Ruslan,

I found the configuration...

destination remote_server { udp("10.0.0.2" port(514)); };

...and restarted the daemon successfully.

But what exactly "remote_server" means?

-- 
### At PoP-SP/RNP, every day is an IPv6 day ###

Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Fixo. +55 11 3091-8901
Móvel. +55 11 9923-9554
fone at RNP: 10158902


Em 15/08/2011 18:30, Ruslan Zakirov escreveu:
>
>
> 15.08.2011 22:51 пользователь "Wagner Pereira" <wpereira at pop-sp.rnp.br 
> <mailto:wpereira at pop-sp.rnp.br>> написал:
> >
> > Hi, Ruslan. I appreciate your answer.
> >
> > Two points:
> >
> > 1. My syslog is running in other server. How to make my RT send logs 
> to it?
>
> SyslogConf option may help. Read description.
>
> > 2. Once I've changed from file to syslog, will the timezone issue be 
> solved?
>
> Syslog tracks timestampts on its own.
>
> >
> > Regards,
> >
> > --
> > ### At PoP-SP/RNP, every day is an IPv6 day ###
> >
> > Wagner Pereira
> > PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
> > CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
> > http://www.pop-sp.rnp.br
> > Fixo. +55 11 3091-8901
> > Móvel. +55 11 9923-9554
> > fone at RNP: 10158902
> >
> >
> > Em 15/08/2011 12:44, Ruslan Zakirov escreveu:
> >
> >> It's by design. Don't use LogToFile in production. Use syslog and
> >> logging to screen (STDERR).
> >>
> >> On Mon, Aug 15, 2011 at 7:11 PM, Wagner 
> Pereira<wpereira at pop-sp.rnp.br <mailto:wpereira at pop-sp.rnp.br>>  wrote:
> >>>
> >>> Hello, friends.
> >>>
> >>> I noticed that my rt.log has been populated in the wrong timezone 
> (GMT). My
> >>> timezone is BRT -03:00.
> >>>
> >>> I found a discussion in which someone said to edit the RT.pm file 
> and change
> >>> the gmtime.
> >>>
> >>> Then I found what follows. Can I change that? If yes, how can I?
> >>>
> >>> --------------------------------
> >>> sub InitLogging {
> >>> ...
> >>>        my ($package, $filename, $line) = caller($frame);
> >>>        $p{message} =~ s/(?:\r*\n)+$//;
> >>>        my $str = "[".gmtime(time)."] [".$p{level}."]: $p{message}
> >>> ($filename:$line)\n";
> >>> ...
> >>> --------------------------------
> >>>
> >>> Regards,
> >>>
> >>> --
> >>> ### At PoP-SP/RNP, every day is an IPv6 day ###
> >>>
> >>> Wagner Pereira
> >>> PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
> >>> CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
> >>> http://www.pop-sp.rnp.br
> >>> Fixo. +55 11 3091-8901
> >>> Móvel. +55 11 9923-9554
> >>> fone at RNP: 10158902
> >>>
> >>> --------
> >>> RT Training Sessions (http://bestpractical.com/services/training.html)
> >>> *  Chicago, IL, USA  September 26&  27, 2011
> >>> *  San Francisco, CA, USA  October 18&  19, 2011
> >>> *  Washington DC, USA  October 31&  November 1, 2011
> >>> *  Melbourne VIC, Australia  November 28&  29, 2011
> >>> *  Barcelona, Spain  November 28&  29, 2011
> >>>
> >>
> >>
> > --------
> > RT Training Sessions (http://bestpractical.com/services/training.html)
> > *  Chicago, IL, USA  September 26 & 27, 2011
> > *  San Francisco, CA, USA  October 18 & 19, 2011
> > *  Washington DC, USA  October 31 & November 1, 2011
> > *  Melbourne VIC, Australia  November 28 & 29, 2011
> > *  Barcelona, Spain  November 28 & 29, 2011
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110816/fb1fc170/attachment.htm>


More information about the rt-users mailing list