# Issues with special characters in docker env

**URL:** <https://discuss.elastic.co/t/issues-with-special-characters-in-docker-env/247021>\
**Category:** Logstash\
**Created:** [August 31, 2020, 10:07pm UTC](https://discuss.elastic.co/t/issues-with-special-characters-in-docker-env/247021 "2020-08-31T22:07:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickyW1995](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickyw1995/32/48731_2.png) [@NickyW1995](https://discuss.elastic.co/u/NickyW1995)\
**Post date:** [August 31, 2020, 10:07pm UTC](https://discuss.elastic.co/t/issues-with-special-characters-in-docker-env/247021/1 "2020-08-31T22:07:40Z")

</div>

Hi, I've got an issue trying to parse special characters into CONFIG\_STRING in my dockerfile.  
I'm not sure here is the right place to ask, but figured someone might've come across this before.

If I try to parse

```auto
    ENV ELASTICSEARCH_HOST "https://..."

```

Error:  
_Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of [A-Za-z0-9\_-], [\t\r\n], "#", "{", [A-Za-z0-9\_], "}" at line 1, column 71 (byte 71) after output { elasticsearch {hosts =\> https"_

It seems to want alphanumeric characters, but I need to parse my ':' which the config file ofcourse does just take.

Any help is extremely appreciated!

Nicky

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 31, 2020, 11:07pm UTC](https://discuss.elastic.co/t/issues-with-special-characters-in-docker-env/247021/2 "2020-08-31T23:07:10Z")

</div>

> [@NickyW1995](#):
>
> output { elasticsearch {hosts =\> https"

There ought to be a double quote before the https. It will be choking on the :// that follows it.

---

<div class="post-metadata">

**Author:** ![NickyW1995](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickyw1995/32/48731_2.png) [@NickyW1995](https://discuss.elastic.co/u/NickyW1995)\
**Post date:** [September 1, 2020, 7:45pm UTC](https://discuss.elastic.co/t/issues-with-special-characters-in-docker-env/247021/3 "2020-09-01T19:45:45Z")

</div>

Thanks for the swift reply @Badger.

The Environment variables ELASTICSEARCH\_HOST has this. I've now also tried to trough CONFIG\_STRING but exists at the same command.. ☹

---

<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:** [September 29, 2020, 7:46pm UTC](https://discuss.elastic.co/t/issues-with-special-characters-in-docker-env/247021/4 "2020-09-29T19:46:05Z")

</div>

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