-
hi,@jertel index elastalert_status mappings: please help me!thinks!!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
my config,yaml: rules_folder: /opt/elastalert2/elastalert2-2.11.0/examples/rules
run_every:
seconds: 30
buffer_time:
minutes: 15
es_host:
es_port: 9200
use_ssl: True
verify_certs: True
ca_certs: /etc/kibana/certs/ca/ca.crt
ssl_show_warn: False
es_username:
es_password:
writeback_index: elastalert_status
alert_time_limit:
days: 2
custom_pretty_ts_format: '%Y-%m-%d %H:%M'
use_local_time: true |
Beta Was this translation helpful? Give feedback.
-
What field are you using in your source index, for storing the document timestamp? And what do those values look like? Is it type mapped to a date type? |
Beta Was this translation helpful? Give feedback.
No, it doesn't. Your match_time value is a string, not a date object. I asked about the source index because I'm trying to understand what the data looks like that your rule is querying. Based on what you've shown the problem appears to be that your rule is using a
timestamp_field
that is not an actual timestamp value (instead it appears to be a date string using an uncommon date/time format).