Action over webhook status

Hi,

I have a watcher with webhook action in it. Is it possible to make another action based on webhook response status? Something like that

actions: {
  webhook_action: {
    webhook: {
      scheme:
      host:
      port:
      ...
    }
  },
  action_on_webhook_response_status: {
    condition: {
      compare: {
        webhook_action.response.status: {
          gte: 400
        }
      }
    },
    email: {
      from:
      to:
      subject:
      body: {
        webhook_action failed
      }
    }
  }
}

I don't think it's possible to collect the response from the webhook that is called in the watch action. You might try asking in the Elasticsearch area of this forum: https://discuss.elastic.co/c/elastic-stack/elasticsearch/6

1 Like

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