# Exiting: error loading config file: yaml:

**URL:** <https://discuss.elastic.co/t/exiting-error-loading-config-file-yaml/103722>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 12, 2017, 12:23pm UTC](https://discuss.elastic.co/t/exiting-error-loading-config-file-yaml/103722 "2017-10-12T12:23:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prachi1](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@prachi1](https://discuss.elastic.co/u/prachi1)\
**Post date:** [October 12, 2017, 12:23pm UTC](https://discuss.elastic.co/t/exiting-error-loading-config-file-yaml/103722/1 "2017-10-12T12:23:32Z")

</div>

I added this to filebeat.yml file  
paths:  
input\_type: log  
-"C:\Users\pjaiswa6\Documents\lnl06a\_3403\*.csv"  
document\_type: my\_log

and ran the command -  
.\filebeat -c filebeat.yml &

I get an error as follows -  
Exiting: error loading config file: yaml: line 22: mapping values are not allowe  
d in this context

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [October 12, 2017, 3:59pm UTC](https://discuss.elastic.co/t/exiting-error-loading-config-file-yaml/103722/2 "2017-10-12T15:59:40Z")

</div>

It's a yaml parsing error. You can check you config for parsing errors with with [http://www.yamllint.com](http://www.yamllint.com) as well. Can you share your complete filebeat config? Please use the `</>` button to format config/log files. YAML is sensitive to indentations and usage of tabs.

---

<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:** [November 9, 2017, 4:04pm UTC](https://discuss.elastic.co/t/exiting-error-loading-config-file-yaml/103722/3 "2017-11-09T16:04:31Z")

</div>

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