I have a file logstash.conf
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => "localhost:9200"
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
when i use command
/opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/logstash.conf --> Error
Pls, show me where my wrong
p/s: i install Elasticsearch on server with IP 10.151.130. 1