# Error initializing beat: error loading config file: yaml: line 19: did not find expected key

**URL:** <https://discuss.elastic.co/t/error-initializing-beat-error-loading-config-file-yaml-line-19-did-not-find-expected-key/274706>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [June 2, 2021, 7:33am UTC](https://discuss.elastic.co/t/error-initializing-beat-error-loading-config-file-yaml-line-19-did-not-find-expected-key/274706 "2021-06-02T07:33:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adarshr4](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@adarshr4](https://discuss.elastic.co/u/adarshr4)\
**Post date:** [June 2, 2021, 7:33am UTC](https://discuss.elastic.co/t/error-initializing-beat-error-loading-config-file-yaml-line-19-did-not-find-expected-key/274706/1 "2021-06-02T07:33:11Z")

</div>

hi all, when am trying to `sudo metricbeat modules enable elasticsearch-xpack` it will triggered the following alert.  
Error initializing beat: error loading config file: yaml: line 19: did not find expected key

please reply

---

<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:** [June 30, 2021, 7:33am UTC](https://discuss.elastic.co/t/error-initializing-beat-error-loading-config-file-yaml-line-19-did-not-find-expected-key/274706/2 "2021-06-30T07:33:23Z")

</div>

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