Skip to content

Does the elastalert-test-rule tool has an option to display the queries being made to Elasticsearch? #1562

Closed Answered by jertel
coweos asked this question in Q&A
Discussion options

You must be logged in to vote

If you add the documented logging configuration in your elastalert.yaml config file it will output the query details.

Ex:

logging:
 version: 1
 incremental: false
 disable_existing_loggers: false
 formatters:
   logline:
     format: '%(asctime)s %(levelname)+8s %(name)+20s %(message)s'

 handlers:
   console:
     class: logging.StreamHandler
     formatter: logline
     level: DEBUG
     stream: ext://sys.stderr



 loggers:
   elastalert:
     level: DEBUG
     handlers: []
     propagate: true

   elasticsearch:
     level: DEBUG
     handlers: []
     propagate: true

   elasticsearch.trace:
     level: DEBUG
     handlers: []
     propagate: true

   '':  # root logger
     level: D…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@coweos
Comment options

Answer selected by coweos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants