You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/02/02 17:18:40 UTC

[jira] [Commented] (KARAF-4305) Logs and JMX stats do not show in kibana with default settings

    [ https://issues.apache.org/jira/browse/KARAF-4305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128480#comment-15128480 ] 

ASF subversion and git services commented on KARAF-4305:
--------------------------------------------------------

Commit 70eda3b168eb1976dc664aba98a769221edd4c11 in karaf-decanter's branch refs/heads/master from [~chris@die-schneider.net]
[ https://git-wip-us.apache.org/repos/asf?p=karaf-decanter.git;h=70eda3b ]

[KARAF-4305] Fix timestamp generation


> Logs and JMX stats do not show in kibana with default settings
> --------------------------------------------------------------
>
>                 Key: KARAF-4305
>                 URL: https://issues.apache.org/jira/browse/KARAF-4305
>             Project: Karaf
>          Issue Type: Bug
>          Components: decanter
>    Affects Versions: decanter-1.0.1
>         Environment: Ubuntu Linux with timezone set to Berlin
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: decanter-1.0.2
>
>
> When we send events to elastic search we create a timestamp that is supposed to be in UTC.
> This is how we format it:
> new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss,SSS'Z'");
> What this actually does is to output the local time and say it is UTC by appending a Z. This only works if you set your local time zone as UTC.
> We should do this instead:
>         tsFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss,SSSX");
>         tsFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
> This outputs the timestamp in UTC regardless of your computer settings.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)