# Logstash keystore, keys entered in UPPERCASE becomes lowercase

**URL:** <https://discuss.elastic.co/t/logstash-keystore-keys-entered-in-uppercase-becomes-lowercase/155919>\
**Category:** Logstash\
**Created:** [November 8, 2018, 3:19pm UTC](https://discuss.elastic.co/t/logstash-keystore-keys-entered-in-uppercase-becomes-lowercase/155919 "2018-11-08T15:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattias\_Arbin](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mattias\_Arbin](https://discuss.elastic.co/u/Mattias_Arbin)\
**Post date:** [November 8, 2018, 3:19pm UTC](https://discuss.elastic.co/t/logstash-keystore-keys-entered-in-uppercase-becomes-lowercase/155919/1 "2018-11-08T15:19:23Z")

</div>

I have this strange issue with the logstash keystore.  
I started adding one password in my keystore named ES\_PWD  
I am pretty sure I got my logstash config working by accessing the key as ${ES\_PWD}

Now, after adding a few more keys, my keystore suddenly lists all keys in lowercase.  
When I add a new key in uppercase letters, it seems to be stored in lowercase. See example below. Is this the expected behaviour?

```
# /usr/share/logstash/bin/logstash-keystore --path.settings /etc/logstash add TESTING

Enter value for TESTING:
Added 'testing' to the Logstash keystore.

# /usr/share/logstash/bin/logstash-keystore --path.settings /etc/logstash list

test
testing

```

Logstash version is 6.4.0  
Red Hat Enterprise Linux Server release 7.4 (Maipo)

---

<div class="post-metadata">

**Author:** ![Mattias\_Arbin](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mattias\_Arbin](https://discuss.elastic.co/u/Mattias_Arbin)\
**Post date:** [November 9, 2018, 9:13am UTC](https://discuss.elastic.co/t/logstash-keystore-keys-entered-in-uppercase-becomes-lowercase/155919/2 "2018-11-09T09:13:42Z")

</div>

OK, after some experimentation I realize that the keys are case insensitive, e.g.  
both {TESTING} and {testing} are accepted.  
I had another issue that added to the confusion.

So, no big issue, except maybe that it could be clearified in the documentation that the keys are case insensitive.

---

<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 7, 2018, 9:13am UTC](https://discuss.elastic.co/t/logstash-keystore-keys-entered-in-uppercase-becomes-lowercase/155919/3 "2018-12-07T09:13:44Z")

</div>

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