-
Notifications
You must be signed in to change notification settings - Fork 26
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
Rollover and alias for stream indices #591
Comments
Investigation of how the ISM plugin persists such data
UPDATE
|
Complete test of policy to rollover based on the previous issueTest the issue stepsTest the issue stepsApplied an ISM policy for rollover as follows:
curl -XPOST -k -u admin:$admin_pass "https://127.0.0.1:9200/.opendistro-ism-config/_doc/MANUAL_wazuh_rollover_policy" -H 'Content-Type: application/json' -d'
{
"policy": {
"policy_id": "MANUAL_wazuh_rollover_policy",
"description": "Wazuh rollover and alias policy created directly on index .opendistro-ism-config",
"last_updated_time": 1737572429671,
"schema_version": 21,
"error_notification": null,
"default_state": "active",
"states": [
{
"name": "active",
"actions": [
{
"retry": {
"count": 3,
"backoff": "exponential",
"delay": "1m"
},
"rollover": {
"min_size": "250mb",
"copy_alias": false
}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"wazuh-alerts-*"
],
"priority": 50,
"last_updated_time": 1737572429671
}
],
"user": {
"name": "admin",
"backend_roles": [
"admin"
],
"roles": [
"own_index",
"all_access"
],
"custom_attribute_names": [],
"user_requested_tenant": null
}
}
}'
{
RESULT
RESULT |
Description
Related issues:
One of the main requirements of the Data Persistence Model Redesign project is to include aliases and rollover policies to stream indices by default, as Index Management related features.
For Wazuh 5, we have identified 2 stream indices:
wazuh-alerts
data stream.wazuh-commands
data stream.The
setup
plugin (see wazuh/wazuh-indexer-plugins#9) generates indices for both data streams at startup,wazuh-alerts-5.x-0001
and.commands
respectively.On this issue, we are going to create aliases and rollover policies for both data streams, defining the rollover criteria.
We have not yet found a simple way of interacting with the OpenSearch's Indexer Management plugin, which is responsible for these things. As part of this issue, we will investigate how to implement these features within our
setup
plugin.Functional requirements
wazuh-alerts
data stream is associated to an alias.wazuh-alerts
data stream is managed by an active rollover policy.wazuh-commands
data stream is associated to an alias.wazuh-commands
data stream is managed by an active rollover policy.Implementation restrictions
setup
plugin.Plan
The text was updated successfully, but these errors were encountered: