Closed ymao1 closed 1 week ago
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
Hi @ymao1,
Thanks for reporting! I tried that locally and the rule continued to work with the original time field which seems to me expected. ~Could you please share steps on how to reproduce and where this error would be logged?~
Update: found the Slack thread about it.
Elasticsearch KQL rules which use data views and determine the time field to use for the rule condition match query based on the time field of the data view can run into an issue where a user creates a rule with a data view with a certain time field, then modifies the data view to have a different time field, the rule can fail with the error
TypeError: Cannot read properties of undefined (reading 'type')
.