Use icinga event timestamp within icinga target

This commit is contained in:
Blerim Sheqa 2019-08-16 16:46:10 +02:00
parent 20d5e0fc77
commit 0724c3c4cd
5 changed files with 2 additions and 20 deletions

View File

@ -2,10 +2,6 @@
title: icingabeat
description: Data received from the Icinga 2 API
fields:
- name: timestamp
type: date
description: >
Timestamp of event occurrence
- name: type
type: keyword

View File

@ -83,7 +83,7 @@ func BuildEventstreamEvent(e []byte) beat.Event {
}
event.Fields.Put("type", "icingabeat.event."+strings.ToLower(icingaEvent["type"].(string)))
event.Fields.Put("timestamp", FloatToTimestamp(icingaEvent["timestamp"].(float64)))
event.Fields.Put(target_key+"timestamp", FloatToTimestamp(icingaEvent["timestamp"].(float64)))
return event
}

View File

@ -3477,16 +3477,6 @@ example: stretch
Data received from the Icinga 2 API
*`timestamp`*::
+
--
Timestamp of event occurrence
type: date
--
*`type`*::
+
--

View File

@ -2423,10 +2423,6 @@
title: icingabeat
description: Data received from the Icinga 2 API
fields:
- name: timestamp
type: date
description: >
Timestamp of event occurrence
- name: type
type: keyword

File diff suppressed because one or more lines are too long