Which is write option to configure filebeat settings

filebeat.prospectors:

  • input_type: log

    Paths that should be crawled and fetched. Glob based paths.

    paths:

    • /tmp/testlog.txt
      exclude_files: [".gz$"]
      ignore_older: 2h

    harvester:
    close_inactive: 5m
    close_renamed: false
    close_removed: true
    close_eof: false

    state:
    clean_inactive: 0
    clean_removed: true
    close_timeout: 0

Are you having issues with this configuration?

Also, please use the </> button to correctly format the yaml, otherwise it is impossible to read correctly.

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