Hi Experts ,
I am trying to implement my custom mapping which is in "elasticsearch-2.0.0\config\templates" folder. Actually I copied my old template from LS1.5.4. It was working absolutely fine in the older version of LS.
Now as suggested by the latest LS documents (https://www.elastic.co/guide/en/logstash/current/_upgrading_logstash_and_elasticsearch_to_2_0.html) I am using following in the output plugin , but it is still ignoring my custom mapping.
output {
if [type] == "LOG" {
elasticsearch {
action => "index"
template_overwrite => true
hosts => ["localhost:9200"]
index => "corr"
workers => 2
}
}
}
Please suggest what I am doing wrong ?