How to capture http response from elasticsearch watcher action block?

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?

"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

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?

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