input {
kafka {
bootstrap_servers => "localhost:9092"
group_id => "consumer-group-01"
topics => ["app_log"]
consumer_threads => 5
decorate_events => false
auto_offset_reset => "earliest"
}
}
output {
elasticsearch {
hosts => ["es-host"]
index => "xx_log-%{+YYYY.MM.dd}"
}
}
kafka {
bootstrap_servers => "localhost:9092"
group_id => "consumer-group-01"
topics => ["app_log"]
consumer_threads => 5
decorate_events => false
auto_offset_reset => "earliest"
}
}
output {
elasticsearch {
hosts => ["es-host"]
index => "xx_log-%{+YYYY.MM.dd}"
}
}