Add user and password and failed

I followed this doc after I installed x-pack. And I update my logstash.conf with user and password.

the error is:
[LogStash::Runner] FATAL logstash.runner - The given configuration is invalid. Reason: Expected one of #, { at line 6, column 8 (byte 81) after input {

input {
beats {
host => "10.8.8.53"
port => "5044"
}
user => logstash_internal
password => Password1
}

I followed this doc:
https://www.elastic.co/guide/en/x-pack/current/logstash.html
input {
...
user => logstash_internal
password => changeme
}
filter {
...
user => logstash_internal
password => changeme
}
output {
elasticsearch {
...
user => logstash_internal
password => changeme
}

any solutions for this?
I've come across the same problem!!

do not add user/password in input and filter section. The doc is not right.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.