# Logstash ElasticSearch Output not using special characters (!)

**URL:** https://discuss.elastic.co/t/logstash-elasticsearch-output-not-using-special-characters/276282
**Category:** Logstash
**Created:** [June 17, 2021, 3:01pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-output-not-using-special-characters/276282 "2021-06-17T15:01:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mahdj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahdj/32/82144_2.png) [@Mahdj](https://discuss.elastic.co/u/Mahdj)
#### Post date: [June 17, 2021, 3:01pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-output-not-using-special-characters/276282/1 "2021-06-17T15:01:45Z")

</div>

Hello everyone,

I have my logstash and want to connect to my ElasticSearch instance with OpenDistro installed.  
I've created an user logstash with password "logstash!" but logstash have an error saying "Got response code '401' contacting Elasticsearch at URL '#the\_URL'".

I've tried changing the password to one without special characters like "logstash" and that works well. So did someone already had this problem and can help me fix it ?

BTW, the password given here is an example and I can't simplify it to fix the problem.

Here is my elasticsearch output config :

```auto
elasticsearch{
                index => "tomee_log_error_"
                hosts => "#the_ip"
                user => "logstash"
                password => "logstash!"
                ssl => true
                ssl_certificate_verification => false
                ilm_enabled => false
        }

```

---

<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: [July 15, 2021, 3:02pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-output-not-using-special-characters/276282/2 "2021-07-15T15:02:12Z")

</div>

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