How to stop logstash from creating a default mapping in ElasticSearch

前端 未结 3 1011
春和景丽
春和景丽 2021-02-02 12:41

I am using logstash to feed logs into ElasticSearch. I am configuring logstash output as:

input {
file {
            path => \"/tmp/foo.log\"
            code         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-02 13:12

    Index templates can help you. Please see this jira for more details. You can create index templates with wildcard support to match an index name and put your default mappings.

提交回复
热议问题