Elastic webhook works sometimes and but sometimes fails

So I am trying to use elastic to launch an ansible task using webhook if a certain syslog message is received
In curl, the command that works is

curl -s -k -u 'user:pass' -X POST -H 'Content-Type: application/json'  -d '{"extra_vars":{"switchportinterface":"GigabitEthernet4/31"}}'
https://ansible.com`

however when I test this in webhook as an connector I have the body set as:

{
  "extra_vars": {
    "switchportinterface": "GigabitEthernet4/31"
  }
}

This fails with an option 400. Although once in a while this will succeed and launch the template. Any idea what changes I need to make?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.