Slack-Alerting | JSON Body

Hello All,

I am testing Kibana to Slack feature. Where, I am receiving a alert message on Slack but no data is present in there.

  "actions": {
    "incoming-webhook": {
      "throttle_period_in_millis": 10000,
      "webhook": {
        "scheme": "https",
        "host": "",
        "port": 443,
        "method": "post",
        "path": "/services/<keys>",
        "params": {},
        "headers": {},
        "body": "{\"text\":\"{{#ctx.payload.hits.hits}} \n Instance: {{_source.event.instance}} \n Type: {{_source.event.type}} \n Name: {{}} \n Link: {{}} \n Threat: {{_source.event.threatName}} \n Hostname: {{_source.event.hostname}} \n avScore: {{_source.event.avPositives}}/{{_source.event.avTotal}} \n  Synapse: {{_source.event.synapse}} \n   Flag: {{_source.event.flagName}} \n    \n {{/ctx.payload.hits.hits}}    \"}"

Need some inputs.

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