No such index [.alerts-observability.uptime.alerts-default]

Hello everyone,

Can't resolve this issue of mine.

{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.6.1"},"@timestamp":"2024-03-31T13:55:54.217+08:00","message":"{\"took\":0,\"errors\":true,\"items\":[{\"index \":{\"_index\":\".alerts-observability.uptime.alerts-default\",\"_id\":\"4e43447f-fac0-4861-a12c-e6e7cc7cdd91\",\"status\":404,\"error\":{\"type\":\"index_not_found_exception\",\"reason \":\"no such index [.alerts-observability.uptime.alerts-default] and [require_alias] request flag is [true] and [.alerts-observability.uptime.alerts-default] is not an alias\",\"index_u uid\":\"_na_\",\"index\":\".alerts-observability.uptime.alerts-default\"}}}]}","error":{"message":"{\"took\":0,\"errors\":true,\"items\":[{\"index\":{\"_index\":\".alerts-observability. uptime.alerts-default\",\"_id\":\"4e43447f-fac0-4861-a12c-e6e7cc7cdd91\",\"status\":404,\"error\":{\"type\":\"index_not_found_exception\",\"reason\":\"no such index [.alerts-observabili ty.uptime.alerts-default] and [require_alias] request flag is [true] and [.alerts-observability.uptime.alerts-default] is not an alias\",\"index_uuid\":\"_na_\",\"index\":\".alerts-obse rvability.uptime.alerts-default\"}}}]}","type":"ResponseError","stack_trace":"ResponseError: {\"took\":0,\"errors\":true,\"items\":[{\"index\":{\"_index\":\".alerts-observability.uptime .alerts-default\",\"_id\":\"4e43447f-fac0-4861-a12c-e6e7cc7cdd91\",\"status\":404,\"error\":{\"type\":\"index_not_found_exception\",\"reason\":\"no such index [.alerts-observability.upt ime.alerts-default] and [require_alias] request flag is [true] and [.alerts-observability.uptime.alerts-default] is not an alias\",\"index_uuid\":\"_na_\",\"index\":\".alerts-observabil ity.uptime.alerts-default\"}}}]}\n    at Object.bulk (/usr/share/kibana/node_modules/@kbn/rule-registry-plugin/server/rule_data_client/rule_data_client.js:175:29)\n    at runMicrotasks  (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at Object.executor (/usr/share/kibana/node_modules/@kbn/rule-registry-plugin/server/utils/c reate_lifecycle_executor.js:187:5)\n    at /usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner.js:288:26\n    at TaskRunnerTimer.runWithTimer (/usr/share/ kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner_timer.js:50:20)\n    at TaskRunner.runRule (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runne r/task_runner.js:266:9)\n    at TaskRunner.run (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner.js:594:49)\n    at TaskManagerRunner.run (/usr/share/k ibana/node_modules/@kbn/task-manager-plugin/server/task_running/task_runner.js:274:22)"},"log":{"level":"ERROR","logger":"plugins.ruleRegistry"},"process":{"pid":2710},"trace":{"id":"ee c1704a32615b218e0d449e7a202656"},"transaction":{"id":"7b7244ab01de72e5"}}

Thanks, @Cruz, for reaching out and providing this code sample. Could you give more context on when you got this error and any steps we can take to replicate it?