Use icinga event timestamp within icinga target
This commit is contained in:
parent
20d5e0fc77
commit
0724c3c4cd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -3477,16 +3477,6 @@ example: stretch
|
|||
Data received from the Icinga 2 API
|
||||
|
||||
|
||||
*`timestamp`*::
|
||||
+
|
||||
--
|
||||
Timestamp of event occurrence
|
||||
|
||||
|
||||
type: date
|
||||
|
||||
--
|
||||
|
||||
*`type`*::
|
||||
+
|
||||
--
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue