# Where to find the valid structure of filebeat?

**URL:** <https://discuss.elastic.co/t/where-to-find-the-valid-structure-of-filebeat/139099>\
**Category:** Beats\
**Created:** [July 9, 2018, 7:38am UTC](https://discuss.elastic.co/t/where-to-find-the-valid-structure-of-filebeat/139099 "2018-07-09T07:38:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nina\_brown](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@Nina\_brown](https://discuss.elastic.co/u/Nina_brown)\
**Post date:** [July 9, 2018, 7:38am UTC](https://discuss.elastic.co/t/where-to-find-the-valid-structure-of-filebeat/139099/1 "2018-07-09T07:38:26Z")

</div>

I'm trying to config a simple filebeat.yml file, but I get syntax errors and I cannot find more details on what is the correct structure for that. Here is my filebeat.yml file but I get the error "line 8: did not find expected '-' indicator"

```
filebeat:
  prospectors:
    - input_type: log
      paths:
        - /var/log/telnet.log
# fields: {nodeIP: "130.245.82.32"}
      document_type: telnet

     - input_type: log
      paths:
        - /var/log/ssh.log
      document_type: myssh

  registry_file: /var/lib/filebeat/registry
.......

```

How can I find what it expects to see?

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [July 9, 2018, 8:40am UTC](https://discuss.elastic.co/t/where-to-find-the-valid-structure-of-filebeat/139099/2 "2018-07-09T08:40:45Z")

</div>

If you look closely, the second `input_type` is indented one extra space to the right.  
It needs to be on the same level than the previous input\_type.

---

<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:** [August 6, 2018, 10:40am UTC](https://discuss.elastic.co/t/where-to-find-the-valid-structure-of-filebeat/139099/3 "2018-08-06T10:40:46Z")

</div>

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