cz-sjm 发表于 2019-1-28 11:04:53

ELK6.0已取消filebeat配置document_type

output {if == "nginx-log" {  
    elasticsearch {
  
      hosts => ["172.18.238.2:9200","172.18.238.3:9200","172.18.238.4:9200"]
  
      index => "%{type}-%{+YYYY.MM.dd}"
  

  
      }
  

  
} else if == "java-log" {
  
    elasticsearch {
  
      hosts => ["172.18.238.2:9200","172.18.238.3:9200","172.18.238.4:9200"]
  
      index => "%{type}-%{+YYYY.MM.dd}"
  
      }
  
    }
  
}


页: [1]
查看完整版本: ELK6.0已取消filebeat配置document_type