Dear All,
I am currently trying to put some files into ES using Filebeat, and meanwhile I want to see if I can set the mapping(with Filebeat, without calling API for ES). As I see from some logstash config, there's a way to do it, like below:
output {
    stdout { codec => rubydebug }
    elasticsearch {
        hosts => [ "localhost:9200" ]
        index => "your_index"
        template => "mapping.json"
        template_overwrite => true
}
Is there a way to do this in filebeat.yml? if so, could you please show me the correct syntax?
Right now my filebeat.yml output section looks like this
output.elasticsearch:
  hosts: ["localhost:9200"]
  index: "your_index"
Cheers,
TK