mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-07-26 23:34:05 +02:00
Use icinga event timestamp within icinga target
This commit is contained in:
parent
20d5e0fc77
commit
0724c3c4cd
@ -2,10 +2,6 @@
|
|||||||
title: icingabeat
|
title: icingabeat
|
||||||
description: Data received from the Icinga 2 API
|
description: Data received from the Icinga 2 API
|
||||||
fields:
|
fields:
|
||||||
- name: timestamp
|
|
||||||
type: date
|
|
||||||
description: >
|
|
||||||
Timestamp of event occurrence
|
|
||||||
|
|
||||||
- name: type
|
- name: type
|
||||||
type: keyword
|
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("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
|
return event
|
||||||
}
|
}
|
||||||
|
@ -3477,16 +3477,6 @@ example: stretch
|
|||||||
Data received from the Icinga 2 API
|
Data received from the Icinga 2 API
|
||||||
|
|
||||||
|
|
||||||
*`timestamp`*::
|
|
||||||
+
|
|
||||||
--
|
|
||||||
Timestamp of event occurrence
|
|
||||||
|
|
||||||
|
|
||||||
type: date
|
|
||||||
|
|
||||||
--
|
|
||||||
|
|
||||||
*`type`*::
|
*`type`*::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
|
@ -2423,10 +2423,6 @@
|
|||||||
title: icingabeat
|
title: icingabeat
|
||||||
description: Data received from the Icinga 2 API
|
description: Data received from the Icinga 2 API
|
||||||
fields:
|
fields:
|
||||||
- name: timestamp
|
|
||||||
type: date
|
|
||||||
description: >
|
|
||||||
Timestamp of event occurrence
|
|
||||||
|
|
||||||
- name: type
|
- name: type
|
||||||
type: keyword
|
type: keyword
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user