Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.5.0
Hi,
I’m opening this new topic because I’m facing a problem, I apologize because I don’t have much knowledge in OpenSearch management.
My Scenario:
1. I have logs coming from Fluent Bit, I have the following configuration:
[OUTPUT]
Name opensearch
Match application.*
AWS_Region ${AWS_REGION}
Host <HOSTNAME OPENSEARCH>
Port 443
Logstash_Format True
Logstash_Prefix eks
Type _doc
tls On
tls.verify off
HTTP_User ${FLUENBIT_USER}
HTTP_Passwd ${FLUENBIT_PASS}
Suppress_Type_Name On
With these parameters Logstash_Format and Logstash_Prefix it generates the following index in OpenSearch:
eks-<DATE>
eks-2023.04.03
2. An ISM policy was created: Below is the excerpt:
{
"name": "rollover",
"actions": [
{
"rollover": {
"min_doc_count": 1
}
}
],
"transitions": [
{
"state_name": "hot",
"conditions": {
"min_rollover_age": "10m"
}
}
]
}
3. Created the following template:
{
"index_patterns": ["eks*"],
"template": {
"settings": {
"plugins.index_state_management.rollover_alias": "eks"
}
}
}
4. Created the following alias:
{
"aliases": {
"eksalias": {
"is_write_index": true
}
}
}
Expected scenario: The objective was to generate a new file with the date every day, and during the day to perform the rollover.
Example: eks-2023.04.03-00001, eks-2023.04.03-00002…
However, when performing these steps, I get the following error:
“message”: “Missing alias or not the write index when rollover [index=eks-2023.04.03]”
Could someone please help?
Thank you very much