Solved

Stream connector | Elastic events and custom events

  • 20 October 2023
  • 2 replies
  • 52 views

Badge +2

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"
  }
}
 

icon

Best answer by jdidierpichat 23 November 2023, 17:49

View original

2 replies

Badge +2

Hi everyone, 

Already stuck on this custom events between centreon and elastic. 

I will appreciate your help 

Badge +2

You can close this discussion,

I find the issue , i had a missing parameter on broker side regarding the path of json configuration file. 

Reply