I have that
input {
beats {
port => 5044
id => "from_filebeat"
}
}
output {
elasticsearch {
hosts => ["http://192.168.66.11:9200"]
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
#user => "elastic"
#password => "changeme"
}
}