# Slack-Alerting | JSON Body

**URL:** <https://discuss.elastic.co/t/slack-alerting-json-body/262677>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [January 29, 2021, 6:15pm UTC](https://discuss.elastic.co/t/slack-alerting-json-body/262677 "2021-01-29T18:15:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjesh23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manjesh23/32/83138_2.png) [@manjesh23](https://discuss.elastic.co/u/manjesh23)\
**Post date:** [January 29, 2021, 6:15pm UTC](https://discuss.elastic.co/t/slack-alerting-json-body/262677/1 "2021-01-29T18:15:28Z")

</div>

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": "hooks.slack.com",
        "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: {{_source.event.name}} \n Link: {{_source.event.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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 26, 2021, 6:16pm UTC](https://discuss.elastic.co/t/slack-alerting-json-body/262677/2 "2021-02-26T18:16:21Z")

</div>

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