# Logstash keystore encoding error

**URL:** <https://discuss.elastic.co/t/logstash-keystore-encoding-error/193135>\
**Category:** Logstash\
**Created:** [July 31, 2019, 2:11pm UTC](https://discuss.elastic.co/t/logstash-keystore-encoding-error/193135 "2019-07-31T14:11:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [July 31, 2019, 3:10pm UTC](https://discuss.elastic.co/t/logstash-keystore-encoding-error/193135/2 "2019-07-31T15:10:27Z")

</div>

> [@tombar](#):
>
> The following config files contains non-ascii characters but are not UTF-8 encoded ["/etc/logstash/logstash.keystore"]"

That is telling you that it is trying to read the keystore as part of the configuration. In case this is not clear. If I configure a pipeline using

```
- pipeline.id: main
  path.config: "/bin/bash"

```

I get the error message "The following config files contains non-ascii characters but are not UTF-8 encoded "/bin/bash"]"

So when you run as a service path.config is getting set to /etc/logstash. How are you setting path.config when you run from the command line?

---

_[View the full topic](https://discuss.elastic.co/t/logstash-keystore-encoding-error/193135)._
