Improve readability of Exclude_lines:

Ok, Iffen I want to exclude me some lines, I do it thusly:
exclude_lines: ["exclude me","and me","and me too"]
This works, but I have some long strings In need to exclude, and it makes it tough to read.

When setting paths, you do it like this:
paths:

  • "some path"
  • "another path".

Can I use the same "-" list to define exclude lines eg:

exclude_lines:

  • "exclude me"
  • "and me"
  • "and me too"

I tried, and didnt seem to work.

The config file is standard YAML so you can write the sequence either way (block or flow style). http://yaml.org/type/seq.html

You can check that your file is valid YAML with www.yamllint.com.

filebeat.prospectors: 
  - 
    exclude_lines: 
      - DEBUG
      - TRACE
    paths: 
      - /var/log/messages

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