Search Index
searchQuery an Elasticsearch or OpenSearch index with a Query DSL body, including counting matches and running aggregations.
Instructions
Search an Elasticsearch or OpenSearch index with a Query DSL body. Use size 0 with track_total_hits true to count, and aggs for aggregations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Search body, e.g. {"query": {"match": {"title": "error"}}, "size": 10, "sort": [{"@timestamp": "desc"}]} | |
| index | Yes | Index name, pattern such as logs-*, or comma-separated list |