I'm not able to load the data to elastic search with template

I can able to load the data into indices in ES with logstash but i've added template later data is not loading into indices . But indices are creating with no data . CAn u help me to resolve this issue .
template :

PUT _template/template_name
        {
            "index_patterns": [
              "indices_name*"
            ],
            "settings": {
              "index": {
                "number_of_shards": "6"
              }
            },
            "mappings": {
                "doc": {
                "properties": {          
                  "field3": {
                    "type": "keyword"
                  },
                  "field_name9": {
                    "type": "keyword"
                  },
                  "field_name8": {
                    "type": "keyword"
                  },
                  "field_name7": {
                    "type": "date"
                  },
                  "field_name6": {
                    "type": "keyword"
                  },
                  "field_name5": {
                    "type": "keyword"
                  },
                  "field_name4": {
                    "type": "keyword"
                  },
                  "field_name3": {
                    "type": "keyword"
                  },
                  "field_name2": {
                    "type": "keyword"
                  },
                  "field_name1" :{
                    "type" : "keyword"
                  }
                }
              }
              },
            "aliases" : { }
         }

logstash output : please find the below logstash output details

output {
output {


elasticsearch {
   
   hosts => ["ipaddress:port"]
   manage_template => true   
   template_name => "template_name"
   template_overwrite => true
   ssl => true

   index => "indices_name-%{+dd-MM-YYYY}"
}
}

Kindly let me know if i'm missing any thing here .And i've tried without template data is loading into indices .With Doc as mapping type i'm not able to load data into indices . IF i use logs i can able to load data into the indices

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.

Then share what is the error.

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