# Filebeat test config failing

**URL:** <https://discuss.elastic.co/t/filebeat-test-config-failing/161016>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 16, 2018, 7:07am UTC](https://discuss.elastic.co/t/filebeat-test-config-failing/161016 "2018-12-16T07:07:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fillic2002](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fillic2002](https://discuss.elastic.co/u/fillic2002)\
**Post date:** [December 16, 2018, 7:07am UTC](https://discuss.elastic.co/t/filebeat-test-config-failing/161016/1 "2018-12-16T07:07:22Z")

</div>

i am getting error on executing below filebeat yml. if i remove last three lines on json, everything looks ok. But as per the elastic document those three lines are the latest one in case i am reading json log. Then what i am doing wrong in here?

#=========================== Filebeat inputs =============================

filebeat.inputs:

# Each - is an input. Most options can be set at the input level, so

# you can use different inputs for various configurations.

# Below are the input specific configurations.

- type: log

---

<div class="post-metadata">

**Author:** ![fillic2002](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fillic2002](https://discuss.elastic.co/u/fillic2002)\
**Post date:** [December 16, 2018, 7:12am UTC](https://discuss.elastic.co/t/filebeat-test-config-failing/161016/2 "2018-12-16T07:12:51Z")

</div>

Looks like space is the issue in here. I removed one space from all those three lines and things looks ok.config test is working fine now.

---

<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:** [January 13, 2019, 7:12am UTC](https://discuss.elastic.co/t/filebeat-test-config-failing/161016/3 "2019-01-13T07:12:51Z")

</div>

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