-
Notifications
You must be signed in to change notification settings - Fork 3
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
Explore how to use the ISM features from another plugin #12
Labels
Comments
I managed to create a very simple index template on startup. public void putTemplate(ActionListener<AcknowledgedResponse> actionListener) {
String indexTemplate = "wazuh";
PutIndexTemplateRequest putRequest = new PutIndexTemplateRequest()
.name(indexTemplate)
.patterns(List.of("wazuh-*"));
try {
client.admin().indices().putTemplate(putRequest, actionListener);
} catch (Exception e) {
String errorMessage = new MessageFormat(
"failed to create index template [{0}]",
Locale.ROOT
).format(indexTemplate);
log.error(errorMessage, e);
throw new IllegalStateException(errorMessage, e);
}
}
We need no improve this approach by reading the index templates from the file system. |
AlexRuiz7
changed the title
Integrate ISM features (index templates, policies)
Explore how to use the ISM features from another plugin
Sep 4, 2024
Moved to the Feature Complete stage. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The initialization plugin needs to ensure that the index templates, indices and ISM policies are created during startup.
In the Spike, we demonstrated how to create an index using custom mappings and settings, but not how to do the same with the Index Templates or the ISM policies. This issue aims to close this gap.
OpenSearch Playground has 2 composable index templates. Searching the name
.opensearch-sap-detectors-queries-index-template
, I found out there is an API atopensearch.admin.indices.template.put
.Originally posted by @AlexRuiz7 in #11 (comment)
Tasks
The text was updated successfully, but these errors were encountered: