[
https://issues.apache.org/jira/browse/KARAF-4305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Schneider resolved KARAF-4305.
----------------------------------------
Resolution: Fixed
> 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)