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"

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?


(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.