Hi experts.
I have this logstash input
input {
beats {
type => "beat"
port => 5044
ssl => false
#ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt"
#ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"
}
redis {
host => "*********"
data_type => "list"
key => "filebeat"
type => "app2"
}
redis {
host => "*********"
data_type => "list"
key => "app1"
type => "app1"
}
}
and the output:
output {
if [type] == "beat" {
elasticsearch {
hosts => ["*********:9200"]
sniffing => true
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
else {
elasticsearch {
hosts => ["*********:9200"]
sniffing => true
manage_template => false
}
}
}
My purpose is beats come to it own index and the other input come to logstash-* index but when i use the [type], it's not working so i ask is beats have any special condition that i can use to solve my problems?
Thanks