Get the Elasticsearch query for a rule

Base URL
https://{kibana_url}
  • GET /api/alerting/rule/{id}/query_inspector
  • GET /s/{space_id}/api/alerting/rule/{id}/query_inspector

Refer to Spaces for more information.

Returns the Elasticsearch query that a rule executes, and optionally its response.

Responses

400

Indicates the rule type is not supported or the request parameters are invalid.

404

Indicates a rule with the specified rule ID does not exist.

Base URL
https://{kibana_url}