Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add debug query output to elasticsearch_query #9827

Merged
merged 2 commits into from
Sep 29, 2021

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Sep 27, 2021

This will print out the elasticsearch query itself if debug logging is
turned on. This is incredibly helpful when trying to put together a new
query or debugging what might be going on. The output string can then be
used directly with Elasticsearch via something like:

$ curl -H 'Content-Type: application/json' -XPOST "http://localhost:9200/_search" -d''

Required for all PRs:

  • Updated associated README.md.
  • Wrote appropriate unit tests.
  • Pull request title or commits are in conventional commit format (e.g. feat: or fix:)

resolves #

This will print out the elasticsearch query itself if debug logging is
turned on. This is incredibly helpful when trying to put together a new
query or debugging what might be going on. The output string can then be
used directly with Elasticsearch via something like:

$ curl -H 'Content-Type: application/json' -XPOST "http://localhost:9200/_search" -d'<output>'
@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Sep 27, 2021
@powersj powersj merged commit e615534 into influxdata:master Sep 29, 2021
@powersj powersj deleted the fix/elasticsearch-debug-query branch September 29, 2021 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants