Hi,
I am using logstash version 1.4.2
I configure logstash to store data in elasticsearch in a manual index name "xyz" and I am using following template for this index.
{
"template" : "xyz-",
"settings" : {
"index.refresh_interval" : "5s"
},
"mappings" : {
"default" : {
"_all" : {"enabled" : true, "omit_norms" : true},
"dynamic_templates" : [ {
"message_field" : {
"match" : "message",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string", "index" : "analyzed", "omit_norms" : true
}
}
}, {
"string_fields" : {
"match" : "",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string", "index" : "not_analyzed", "omit_norms" : true,
"fields" : {
"raw" : {"type": "string", "index" : "not_analyzed", "ignore_above" : 256}
}
}
}
} ],
"properties" : {
"@version": { "type": "string", "index": "not_analyzed" },
"geoip" : {
"type" : "object",
"dynamic": true,
"properties" : {
"location" : { "type" : "geo_point" }
}
}
}
}
}
}
Issue is logstash storing data both in default index "logstash" and manual index "xyz".
I want to store data only in one index "xyz".
I am using "elasticsearch_http" output plugin to store data with following configuration.
elasticsearch_http {
host => "127.0.0.1"
index => "xyz-%{+YYYY.MM.dd}"
template => "/opt/logstash/lib/logstash/outputs/elasticsearch/elasticsearch-xyz.json"
template_overwrite => true
template_name => "xyz"
}