# Watcher : webhook action parsing error

**URL:** <https://discuss.elastic.co/t/watcher-webhook-action-parsing-error/354321>\
**Category:** Elasticsearch\
**Created:** [February 28, 2024, 10:27am UTC](https://discuss.elastic.co/t/watcher-webhook-action-parsing-error/354321 "2024-02-28T10:27:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramiwashere](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@ramiwashere](https://discuss.elastic.co/u/ramiwashere)\
**Post date:** [February 28, 2024, 10:27am UTC](https://discuss.elastic.co/t/watcher-webhook-action-parsing-error/354321/1 "2024-02-28T10:27:04Z")

</div>

Hi,

I'm facing an error from watcher and the webhook action section:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/0/709f5dbe4d6c43229f76ea7691e4b208b4112655.png)

The watcher is working fine and send us via email the related information we need (ie count of error from an IP address and subcount of error related to the user). Below an exemple of mail received:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/2/a2aecfe1a76fa40be51e05059f4c04e12f9dfce4.png)

Now the webhook action need to send all the IP address (there is multiple IP address find as the watcher use an aggregation). However, there is the parsing erro from the body parameter. Below, the webhook section:

```auto
"my_webhook" : {
        "webhook" : {
        "method" : "POST",
        "host" : "xx.xx.xx.xx",
        "scheme": "https",
        "port" : "xxxx",
        "path" : "/api/v1/hooks/webhook_[ID_OF_WEBHOOK]",
        "body" : { "destination.ip": "{{#ctx.payload.destination_ip}}{{/ctx.payload.destination_ip}}" }
		  }
	  }

```

I've test different body but without sucess. Does anyone had a tips to this parsing error ?

Thank you

---

<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:** [March 27, 2024, 10:27am UTC](https://discuss.elastic.co/t/watcher-webhook-action-parsing-error/354321/2 "2024-03-27T10:27:06Z")

</div>

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