You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Marc Roos <M....@f1-outsourcing.eu> on 2020/09/20 15:06:23 UTC

Changing logging timestamp

I have default remote syslog setup on centos all applications and server 
log the same timestamp (zone), except mesos and marathon tasks. I assume 
UTC times are send from them. How can I set this back to the 'hosts 
default'?





Re: Changing logging timestamp

Posted by Benjamin Mahler <bm...@apache.org>.
Mesos uses Google's glog library for logging:
https://github.com/google/glog

I believe it just prints the local time. You can see that it's produced by
a call to gettimeofday(&tv, NULL) and localtime_r (not gmtime_r):

https://github.com/google/glog/blob/v0.4.0/src/logging.cc#L1267
https://github.com/google/glog/blob/v0.4.0/src/utilities.cc#L221

There appears to be no way to configure it.

We find most users set up their servers to use UTC as the local time.

On Sun, Sep 20, 2020 at 11:06 AM Marc Roos <M....@f1-outsourcing.eu> wrote:

>
> I have default remote syslog setup on centos all applications and server
> log the same timestamp (zone), except mesos and marathon tasks. I assume
> UTC times are send from them. How can I set this back to the 'hosts
> default'?
>
>
>
>
>