-
I want to display all documents matching a selected rule, and these documents must include information in the match_body field of the write_back_index named "test." However, the default mapping for this index is created using the elastalert-create-index command, and the match_body field is mapped as disabled with the following configuration when show the mapping of write-back-index:
How can I enable it? I cannot create the index template before running the elastalert-create-index command because this command will attempt to apply the mapping again, causing an error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Per Elasticsearch docs, the |
Beta Was this translation helpful? Give feedback.
-
@jertel I want to enable match_body in the Elasticsearch mapping to display and query it with Grafana. My workaround is to rebuild the container image and replace the es_mapping file from https://github.com/jertel/elastalert2/tree/master/elastalert/es_mappings with a new mapping that enables match_body. |
Beta Was this translation helpful? Give feedback.
@jertel I want to enable match_body in the Elasticsearch mapping to display and query it with Grafana. My workaround is to rebuild the container image and replace the es_mapping file from https://github.com/jertel/elastalert2/tree/master/elastalert/es_mappings with a new mapping that enables match_body.
I have one more question: What does match_time in in the meta_data? What is difference between match_time and alert_time?
I can not find it in the doc at: https://elastalert2.readthedocs.io/en/latest/elastalert_status.html