Skip to main content
Solved

Stream connector | Elastic events and custom events


Forum|alt.badge.img+3

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

Best answer by jdidierpichat

You can close this discussion,

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

View original

Forum|alt.badge.img+3

Hi everyone, 

Already stuck on this custom events between centreon and elastic. 

I will appreciate your help 


Forum|alt.badge.img+3

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings