I've been getting this weird error for some time now:
Error: Expected one of #, input, filter, output at line 2, column 1 (byte 2) after
input {
stdin {}
udp {
type => "udp"
port => "5959"
}
file {
type => "syslog"
path => "/var/log/messages"
}
}
output {
elasticsearch {
host => localhost
}
}
bin/logstash -f logstash.conf
Thanks in Advance :)
Probably you have some unsupported non-printed character in the original file. Incorrect EOL or whatever.
This example works fine with my logstash. Try to copy and paste this config (from your post) to a new file and try it again.
Good luck.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.