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
This commit is contained in:
pobradovic08
2019-02-13 04:48:12 +01:00
committed by Tony Murray
parent d60a0da7de
commit 67d81e68c9

View File

@ -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'],