We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Index patterns are being created with a truncated index pattern from the index template index patterns passed in the config
This bug occurs when there is no ism_policy_file passed to the source. This is here in the code (
ism_policy_file
data-prepper/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/IndexManagerFactory.java
Line 103 in 463fa45
NoIsmPolicyManagement
data-prepper/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/NoIsmPolicyManagement.java
Line 43 in 463fa45
data-prepper/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/AbstractIndexManager.java
Line 230 in 463fa45
data-prepper/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/IsmPolicyManagement.java
Line 145 in 463fa45
To Reproduce Steps to reproduce the behavior:
sink: - opensearch: index: "test-index-1" template_type: "index-template" template_content: | { "index_patterns": [ "test-*" ], "template": { "aliases": { "my_test_logs": {} }, "settings": { "number_of_shards": 5, "number_of_replicas": 2, "refresh_interval": -1 }, "mappings": { "properties": { "timestamp": { "type": "date", "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis" }, "value": { "type": "double" } } } } }
GET _index_template/test-index-template
You will see that the index_pattern in the template is only test and not test-*
test
test-*
Expected behavior To not truncate the index pattern
Additional context
The text was updated successfully, but these errors were encountered:
Maybe same here.
Sorry, something went wrong.
dlvenable
No branches or pull requests
Describe the bug
Index patterns are being created with a truncated index pattern from the index template index patterns passed in the config
This bug occurs when there is no
ism_policy_file
passed to the source. This is here in the code (data-prepper/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/IndexManagerFactory.java
Line 103 in 463fa45
NoIsmPolicyManagement
class is made. This class has the following method which does not add a pattern back (data-prepper/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/NoIsmPolicyManagement.java
Line 43 in 463fa45
data-prepper/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/AbstractIndexManager.java
Line 230 in 463fa45
data-prepper/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/IsmPolicyManagement.java
Line 145 in 463fa45
To Reproduce
Steps to reproduce the behavior:
You will see that the index_pattern in the template is only
test
and nottest-*
Expected behavior
To not truncate the index pattern
Additional context
The text was updated successfully, but these errors were encountered: