You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2016/02/13 06:51:18 UTC
[jira] [Updated] (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:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-4305:
----------------------------------------
Fix Version/s: (was: decanter-1.0.2)
decanter-1.1.0
> 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.1.0
>
>
> 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)