# Required Object but found string

**URL:** <https://discuss.elastic.co/t/required-object-but-found-string/183543>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 30, 2019, 1:44pm UTC](https://discuss.elastic.co/t/required-object-but-found-string/183543 "2019-05-30T13:44:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KWBrandenWagner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwbrandenwagner/32/47159_2.png) [@KWBrandenWagner](https://discuss.elastic.co/u/KWBrandenWagner)\
**Post date:** [May 30, 2019, 1:44pm UTC](https://discuss.elastic.co/t/required-object-but-found-string/183543/1 "2019-05-30T13:44:21Z")

</div>

I know this has to be something simple, but im staring at it and cant figure it out, so im posting here for some extra eyes to tell me what i did wrong.  
**ERROR**  
`Exiting: Error while initializing input: required 'object', but found 'string' in field 'filebeat.inputs.0.fields' (source:'/etc/filebeat/filebeat.yml')`

**CONFIG**

```
filebeat.inputs:
    - type: log
      enabled: true
      paths:
        - /opt/bro/logs/current/conn.log
      fields:
         type:bro-conn
      fields_under_root: true

```

What am I missing?

---

<div class="post-metadata">

**Author:** ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)\
**Post date:** [May 30, 2019, 3:16pm UTC](https://discuss.elastic.co/t/required-object-but-found-string/183543/2 "2019-05-30T15:16:35Z")

</div>

The whitespace is missing after the colon.

---

<div class="post-metadata">

**Author:** ![KWBrandenWagner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwbrandenwagner/32/47159_2.png) [@KWBrandenWagner](https://discuss.elastic.co/u/KWBrandenWagner)\
**Post date:** [May 30, 2019, 3:56pm UTC](https://discuss.elastic.co/t/required-object-but-found-string/183543/3 "2019-05-30T15:56:37Z")

</div>

Thanks. That fixed it. Sorry. I knew it was something simple. I guess i was just looking at it for too long.

---

<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 27, 2019, 3:56pm UTC](https://discuss.elastic.co/t/required-object-but-found-string/183543/4 "2019-06-27T15:56:40Z")

</div>

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