From 67d81e68c92a87465e161d9ffdbd1f7607c5dbe2 Mon Sep 17 00:00:00 2001 From: pobradovic08 Date: Wed, 13 Feb 2019 04:48:12 +0100 Subject: [PATCH] LibreNMS/Alert/Transport/Elasticsearch - Send timestamp with timezone (#9757) * Send timestamp with timezone Add timezone to timestamp field, otherwise ES will think it's UTC * Update Elasticsearch.php --- LibreNMS/Alert/Transport/Elasticsearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Alert/Transport/Elasticsearch.php b/LibreNMS/Alert/Transport/Elasticsearch.php index 89651eb22a..43b1e6259b 100644 --- a/LibreNMS/Alert/Transport/Elasticsearch.php +++ b/LibreNMS/Alert/Transport/Elasticsearch.php @@ -83,7 +83,7 @@ class Elasticsearch extends Transport } $data = array( - '@timestamp' => strftime("%Y-%m-%dT%T"), + '@timestamp' => date('c'), "host" => gethostname(), "location" => $obj['location'], "title" => $obj['name'],