Hi,
I've configured logstash input for different type. but when it ouputs elastic search, value of type filed is coming as "log". No matter what i configure type value in input section, it's being outputted as "log". my configuration look like this without filter like below. can you please let me know what's going wrong with this?
input {
beats {
port => 10044
type => "hotfix"
ssl => false
ssl_certificate => "/etc/pki/tls/certs/logstash/logstash.crt"
ssl_key => "/etc/pki/tls/certs/logstash/logstash.key"
}
}
output {
elasticsearch {
hosts => "localhost:9200"
sniffing => true
manage_template => false
index => "logstash-%{type}-%{+YYYY.MM.dd}" --> type coming as "log"
document_type => "%{[@metadata][type]}"
}