Kibana Uptime having an issue (unknown type for collapse field `monitor.id`)

Hi,

i am having an issue while configure Heartbeat to setup uptime in kibana, it says "Error GraphQL error: [search_context_exception] unknown type for collapse field monitor.id,", can someone please help me with it, thanks.

When i looked at Heartbeat index "monitor.id" has same as "monitor.host"

error.type has "io", not sure what do with it.

This is likely due to deleting heartbeat indices while heartbeat is running.

To fix it:

  1. Stop heartbeat
  2. Delete all heartbeat indices
  3. Start heartbeat

Note that this will of course delete all monitoring data

i have deleted all heartbeat indices multiple times after stoping heartbeat service, still has same issue.