# How to capture http response from elasticsearch watcher action block?

**URL:** <https://discuss.elastic.co/t/how-to-capture-http-response-from-elasticsearch-watcher-action-block/355132>\
**Category:** Elasticsearch\
**Created:** [March 11, 2024, 8:18am UTC](https://discuss.elastic.co/t/how-to-capture-http-response-from-elasticsearch-watcher-action-block/355132 "2024-03-11T08:18:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Souvik\_Das](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/souvik_das/32/107606_2.png) [@Souvik\_Das](https://discuss.elastic.co/u/Souvik_Das)\
**Post date:** [March 11, 2024, 8:18am UTC](https://discuss.elastic.co/t/how-to-capture-http-response-from-elasticsearch-watcher-action-block/355132/1 "2024-03-11T08:18:24Z")

</div>

Hi All,

I'm struggling to capture the http response coming from execution of an action block.

Is there any way to store it in a separate index?

```auto
"actions": {
  "my_webhook": {
    "webhook": {
      "method": "post",
	  "scheme": "https",
      "host": "testhost.com",
	  "path": "/objects",
      "port": 443,
      "headers": {
        "Content-Type": "application/json"
      },
      "body": """{"uuid": "ctx.payload.uuid","rCode": "{{ctx.payload.key}}", "status": "activated"}"""
    }
  }
 }

```

Please help. Also do let me know if you need any further details.

Kind regards,  
Souvik

---

<div class="post-metadata">

**Author:** ![Souvik\_Das](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/souvik_das/32/107606_2.png) [@Souvik\_Das](https://discuss.elastic.co/u/Souvik_Das)\
**Post date:** [March 12, 2024, 9:45am UTC](https://discuss.elastic.co/t/how-to-capture-http-response-from-elasticsearch-watcher-action-block/355132/2 "2024-03-12T09:45:56Z")

</div>

Can anyone from @elastic help me on this plz?

Edited

Hi Alex, @spinscale, apologies for pinging you like this. I have seen that you responded to similar issues. Could you please help me on this?

---

<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:** [April 9, 2024, 9:46am UTC](https://discuss.elastic.co/t/how-to-capture-http-response-from-elasticsearch-watcher-action-block/355132/3 "2024-04-09T09:46:21Z")

</div>

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