Where to find the valid structure of filebeat?

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?

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.

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