# Logstash YAML Error

**URL:** <https://discuss.elastic.co/t/logstash-yaml-error/143693>\
**Category:** Logstash\
**Created:** [August 9, 2018, 12:55pm UTC](https://discuss.elastic.co/t/logstash-yaml-error/143693 "2018-08-09T12:55:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [August 9, 2018, 12:55pm UTC](https://discuss.elastic.co/t/logstash-yaml-error/143693/1 "2018-08-09T12:55:42Z")

</div>

Yet Another Newby Question

I am not sure what file to look in I have looked over logstash.yml several times and do not see were the error may be. I might need a better guide to yml files. Here is the error:

Aug 09 07:46:48 dhpxtlmd1 logstash[12478]: ERROR: Failed to parse YAML file "/etc/logstash/logstash.yml". Please confirm if the YAML structure is valid (e.g. look for incorrect usage of whitespace or indentation). Aborting... parser\_error=\>  
Aug 09 07:46:48 dhpxtlmd1 logstash[12478]: [ERROR] 2018-08-09 07:46:48.971 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit  
Aug 09 07:46:49 dhpxtlmd1 systemd[1]: logstash.service: Main process exited, code=exited, status=1/FAILURE  
Aug 09 07:46:49 dhpxtlmd1 systemd[1]: logstash.service: Unit entered failed state.  
Aug 09 07:46:49 dhpxtlmd1 systemd[1]: logstash.service: Failed with result 'exit-code'.  
Aug 09 07:46:49 dhpxtlmd1 systemd[1]: logstash.service: Service hold-off time over, scheduling restart.

---

<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 9, 2018, 1:24pm UTC](https://discuss.elastic.co/t/logstash-yaml-error/143693/2 "2018-08-09T13:24:35Z")

</div>

First, make sure there are no tab characters in the file. If there are none, then show us what the non-comment lines look like. Does it really not log any text after parser\_error?

---

<div class="post-metadata">

**Author:** ![bigdamhero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigdamhero/32/34478_2.png) [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Post date:** [August 9, 2018, 7:07pm UTC](https://discuss.elastic.co/t/logstash-yaml-error/143693/3 "2018-08-09T19:07:02Z")

</div>

Thank you Badger, you did not say much but it was very helpful.  
I am trying to implement a secure connection between elasticsearch and logstash. I was able to track some of the errors down by toggling some settings on and off. I am looking at some logstash configuration files which have the logstash user and passwords included I guess I am looking for a good recommendation on how to test these files if they work correctly. Or even what a good guide to troubleshooting this type of connection.

---

<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 6, 2018, 7:07pm UTC](https://discuss.elastic.co/t/logstash-yaml-error/143693/4 "2018-09-06T19:07:06Z")

</div>

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