-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom rule in Elastic Security throws RuleDataWriteDisabledError error when run #148460
Comments
Contrary to #139969 I have verified the alerts are not in cold/frozen/snapshot phase. {
"indices": {
".internal.alerts-security.alerts-default-000001": {
"index": ".internal.alerts-security.alerts-default-000001",
"managed": true,
"policy": ".alerts-ilm-policy",
"index_creation_date_millis": 1672866669277,
"time_since_index_creation": "20.52h",
"lifecycle_date_millis": 1672866669277,
"age": "20.52h",
"phase": "hot",
"phase_time_millis": 1672866669344,
"action": "rollover",
"action_time_millis": 1672866669344,
"step": "check-rollover-ready",
"step_time_millis": 1672866669344,
"phase_execution": {
"policy": ".alerts-ilm-policy",
"phase_definition": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_primary_shard_size": "50gb",
"max_age": "30d"
}
}
},
"version": 3,
"modified_date_in_millis": 1672843617932
}
}
}
} |
Pinging @elastic/kibana-security (Team:Security) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
@brsolomon-deloitte the 3 posted log lines are likely a red herring, and the relevant log entry likely higher up in the file. Generally I've seen this when resources fail to install for some reason https://github.com/elastic/kibana/blob/main/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.ts#L96 perhaps try to look for the error message seen on this line kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.ts Line 120 in b7ff354
|
deleting preview index and restarting kibana fixed this. using version 8.5.3 |
happens in 8.6.2 too. different cluster too.
Same fix, restart Kibana. Trying to force an ILM step did not work either. |
Kibana version: 8.5.3
Elasticsearch version: 8.5.3
Browser version: Chrome 108.0.5359.124
Original install method (e.g. download page, yum, from source, etc.): ECK
Describe the bug: Custom rule fails to run with
Bulk Indexing of signals failed: RuleDataWriteDisabledError: Rule registry writing is disabled due to an error during Rule Data Client initialization.
Steps to reproduce:
suricata
moduleFailed
runs with zero useful debugging informationExpected behavior: Rule runs successfully.
Screenshots (if relevant):
Provide logs and/or server output (if relevant):
Kibana logs:
The rule in question
Fetched with
GET kbn:/api/alerting/rules/_find?search_fields=name&search=Suricata*
.The text was updated successfully, but these errors were encountered: