HI Everyone,
I would like to known if one of you have already setup a custom elastic events using elastic stream connector ?
I want to add 1 field on the default payload.
As mention in the documentation I created the .json file bellow (with readable access for centreon-broker user, stored on /etc/centreon-broker/ and its seems that the json file is not read by centreon-broker.
When I check the elastic-events logfile and the detailed of the playload sent to elastic. The instance is missing on the curl.
# cat elastic-events-format.json
{
"neb_host_status": {
"event_type": "host",
"state": "{state}",
"state_type": "{state_type}",
"hostname": "{cache.host.name}",
"outout": "{output_scshort}",
"instance": "serveur1"
},
"neb_service_status": {
"event_type": "service",
"state": "{state}",
"state_type": "{state_type}",
"hostname": "{cache.host.name}",
"outout": "{output_scshort}",
"instance": "serveur1"
}
}