-
Notifications
You must be signed in to change notification settings - Fork 203
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
[BUG] Custom ISM policy isnt injected #4450
Comments
Working fine in DataPrepper v 2.7.0, but I see different settings in template, when I get it from OpenSearch:
{
"otel-v1-apm-span-index-template": {
"order": 0,
"version": 1,
"index_patterns": [
"otel-v1-apm-span-*"
],
"settings": {
"index": {
"opendistro": {
"index_state_management": {
"rollover_alias": "otel-v1-apm-span"
}
}
}
},
"mappings": {
"_source": {
"enabled": true
},
"dynamic_templates": [
{
"resource_attributes_map": {
"path_match": "resource.attributes.*",
"mapping": {
"type": "keyword"
}
}
},
{
"span_attributes_map": {
"path_match": "span.attributes.*",
"mapping": {
"type": "keyword"
}
}
}
],
"date_detection": false,
"properties": {
"traceId": {
"ignore_above": 256,
"type": "keyword"
},
"kind": {
"ignore_above": 128,
"type": "keyword"
},
"traceGroupFields": {
"type": "object",
"properties": {
"endTime": {
"type": "date_nanos"
},
"durationInNanos": {
"type": "long"
},
"statusCode": {
"type": "integer"
}
}
},
"traceGroup": {
"ignore_above": 1024,
"type": "keyword"
},
"serviceName": {
"type": "keyword"
},
"parentSpanId": {
"ignore_above": 256,
"type": "keyword"
},
"spanId": {
"ignore_above": 256,
"type": "keyword"
},
"name": {
"ignore_above": 1024,
"type": "keyword"
},
"startTime": {
"type": "date_nanos"
},
"links": {
"type": "nested"
},
"endTime": {
"type": "date_nanos"
},
"durationInNanos": {
"type": "long"
},
"events": {
"type": "nested",
"properties": {
"time": {
"type": "date_nanos"
}
}
},
"status": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"message": {
"type": "keyword"
}
}
}
}
},
"aliases": {}
}
} So, can somebody explain for me, what is correct? Variant A (our settings): ...
"template": {
"settings": {
"plugins.index_state_management.rollover_alias": "otel-v1-apm-span"
}
}
... OR Variant B (settings from OpenSearch after DataPrepper injection): ...
"settings": {
"index": {
"opendistro": {
"index_state_management": {
"rollover_alias": "otel-v1-apm-span"
}
}
}
}
... ? Thank you! |
@LHozzan , I want to clarify your problem. Your ISM policy is working, correct? But, you are seeing a different setting? Data Prepper still uses the Line 23 in 48d8bc3
OpenSearch ISM should be treating these the same until they remove the |
Hi @dlvenable .
Yes, our custom ISM is working fine with DataPrepper v2.7.0, but same state isnt working with previous DP version (2.6.2). The ISM must be connected to the index template via
Yes, we importing ISM policy in specific state. But the state will be changed after importing to the OpenSearch (= when I comparing our state BEFORE importing and state from OpenSearch AFTER importing, they are different). And here is my confusion:
Why? I expecting, that if I import some objects to the OpenSearch and they have some older format, OpenSearch "upgrade them on the fly" and store upgraded version. So, upgraded version is better to use, because if I importing this upgraded version, no changes occurred, I think.
I see it and this is the point:
It seems, that the bug was solved in DP v2.7.0 . I hope, that the bug stay solved and not occurred anymore :). Problem is, that we post the bug when is too late and we spot, that OpenSearch have very big index with all tracing data, aka index wasnt rolled over, due to missing (= expected, but not imported) ISM template. |
The best way to deal with this is creation of index patterns through data-prepper in ISM policy as well. This will solve more crucial scenario when we use dynamic index alias name as currently data-prepper is managing template and policy name based on indexAlias. |
Describe the bug
On fresh start (DataPrepper against fresh empty initialized OpenSearch DB) we expecting, that DataPrepper inject our custom ISM policy + custom index template.
From logs from DataPrepper I can see, that the index template is managed, but ISM policy not.
Expected behavior
If custom ISM policy is used, must be showed in ISM management GUI and ISM must managing the OTel indices.
Environment (please complete the following information):
Additional context
/usr/share/data-prepper/config/data-prepper-config.yaml
/usr/share/data-prepper/otel-span-index-template.json
/usr/share/data-prepper/otel-span-ism-policy.json
/usr/share/data-prepper/pipelines/pipelines.yaml
The text was updated successfully, but these errors were encountered: