Skip to content

Conversation

@drewdaemon
Copy link
Contributor

Adds a validation_only option to the request body for _query.

If validation_only is true, the execution ends after the pre-analysis and analysis stages and returns

  • validation errors if there are any
  • an empty table if there aren't
curl -H 'Content-Type: application/json' \
      -d '{ "query": "FROM logs-aws_s3 |  EVAL aws.s3.bucket.name", "validation_only": true }' \
      -X POST \
      'http://localhost:9200/_query?format=txt'

@elasticsearchmachine elasticsearchmachine added v9.1.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants