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]