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