Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D45FE186D9 for ; Tue, 2 Feb 2016 16:18:50 +0000 (UTC) Received: (qmail 81818 invoked by uid 500); 2 Feb 2016 16:18:40 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 81688 invoked by uid 500); 2 Feb 2016 16:18:40 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 81466 invoked by uid 99); 2 Feb 2016 16:18:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 16:18:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3CD242C1F78 for ; Tue, 2 Feb 2016 16:18:40 +0000 (UTC) Date: Tue, 2 Feb 2016 16:18:40 +0000 (UTC) From: "Christian Schneider (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KARAF-4305) Logs and JMX stats do not show in kibana with default settings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)