Hi,
i'm using ES, LS, Kibana 5.3, beat 5.4 and Kafka 0.10.2
I used winlogbeat to send event log to ES
Beat -> Logstash collector -> Kafka -> Logstash Processor -> ElasticSearch
This is my config in logstash collector
input {
beats {
port => 5044
}
}
filter {
if [type] == "wineventlog" and [event_id] == 5156 {
drop { }
}
mutate {
add_field => {"beatname" => "%{[@metadata][beat]}"}
add_field => {"beattype" => "%{[@metadata][type]}"}
}
}
output {
kafka {
bootstrap_servers => "kafka-01:9092,kafka-02:9093,kafka-03:9094"
codec => plain {
format => "%{message}"
}
topic_id => "logstash-log"
}
}
This is my config in logstash processor
input {
kafka {
bootstrap_servers => "kafka-01:9092,kafka-02:9093,kafka-03:9094"
consumer_threads => 8
group_id => "logstash"
topics => "logstash-log"
}
}
output {
elasticsearch {
hosts => ["https://ES-02:9200", "https://ES-03:9200", "https://ES-04:9200"]
user => "elastic"
cacert => "/etc/logstash/ca.pem"
ssl => true
password => "mypassword"
manage_template => false
flush_size => 5000
index => "%{beatname}-%{+xxxx.ww}"
document_type => "%{beattype}"
}
}
im using Kafka Ui tool for monitor multi-broker cluster
I checked in tool, no new message in Kafka, no consumer .... After that i checkd in /var/log/logstash/logstash-plain.log, .. no error.
I try to set output is file, got many event log ..
So what happen? Something wrong with my logstash config.
Thansk