# Add user and password and failed

**URL:** https://discuss.elastic.co/t/add-user-and-password-and-failed/67525
**Category:** Logstash
**Created:** [November 29, 2016, 5:13pm UTC](https://discuss.elastic.co/t/add-user-and-password-and-failed/67525 "2016-11-29T17:13:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![robertchen117](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@robertchen117](https://discuss.elastic.co/u/robertchen117)
#### Post date: [November 29, 2016, 5:13pm UTC](https://discuss.elastic.co/t/add-user-and-password-and-failed/67525/1 "2016-11-29T17:13:18Z")

</div>

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](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  
}

---

<div class="post-metadata">

### Author: ![aparadka](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aparadka](https://discuss.elastic.co/u/aparadka)
#### Post date: [December 1, 2016, 11:02am UTC](https://discuss.elastic.co/t/add-user-and-password-and-failed/67525/2 "2016-12-01T11:02:56Z")

</div>

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

---

<div class="post-metadata">

### Author: ![robertchen117](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@robertchen117](https://discuss.elastic.co/u/robertchen117)
#### Post date: [December 1, 2016, 2:58pm UTC](https://discuss.elastic.co/t/add-user-and-password-and-failed/67525/3 "2016-12-01T14:58:10Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 29, 2016, 2:58pm UTC](https://discuss.elastic.co/t/add-user-and-password-and-failed/67525/4 "2016-12-29T14:58:26Z")

</div>

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