mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Tony Murray
parent
d60a0da7de
commit
67d81e68c9
@ -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'],
|
||||
|
Reference in New Issue
Block a user