Where to find the valid structure of filebeat?

(Nina Brown) #1

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"

    - input_type: log
        - /var/log/telnet.log
#      fields:  {nodeIP: ""}
      document_type: telnet

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

  registry_file: /var/lib/filebeat/registry

How can I find what it expects to see?

(Adrian Serrano) #2

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.

(system) #3

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