Error while installing index templates

Hi guys,

I am having a problem across some pipelines on logstash. Everytime i restart or start logstash i can see that it outputs an error line for some of the pipelines configured. The error is the following:

Failed to install template {:message=>"Got response code '400' contacting Elasticsearch at URL 'https://xxxxx:9200/_index_template/my-template-test'"

I don't know what is causing this to happen.
My logstash version are 8.3.1.

An example of the template is the following:

{
    "index_patterns": [
        "xxx1-*",
        "xxx2-*",
        "xxx3-*"
    ],
    "settings": {
        "index": {
            "number_of_shards": "2",
            "number_of_replicas": "1",
            "lifecycle": {
                "name": "example-policy"
            }
        }
    },
    "mappings": {
        "properties" : {
            "@timestamp" : {
                "type" : "date"
            },
            "acronym" : {
                "type" : "keyword"
            },
            "@version" : {
                "type" : "text",
                "fields" : {
                    "keyword" : {
                        "type" : "keyword",
                        "ignore_above" : 256
                }
              }
            },
            "app" : {
                "type" : "keyword"
            },
            "app-alias" : {
                "type" : "keyword"
            },
            "env" : {
                "type": "keyword"
            },
            "facility" : {
                "type" : "long"
            }
        }
    }
}

Do you have any ideas?
Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.