How to reduce / group repeating prospector configs

Hi,

I have a filebeat config like below;

filebeat.prospectors:

- input_type: log
  paths:
    - /logfolder/qwerty.txt
  include_lines: ['^[[:digit:]]{4}']
  fields:
    logtype: log1
  document_type: logfile
  scan_frequency: 60s
  close_inactive: 1m
  
- input_type: log
  paths:
    - /logfolder2/asdf.txt
  include_lines: ['^[[:digit:]]{4}']
  fields:
    logtype: log2
  document_type: logfile
  scan_frequency: 60s
  close_inactive: 1m

- input_type: log
  paths:
    - /logfolder3/zxcv.txt
  include_lines: ['^[[:digit:]]{4}']
  fields:
    logtype: log3
  document_type: logfile
  scan_frequency: 60s
  close_inactive: 1m
  
output.console:
  enabled: true
  pretty: true

as you can see, the options input_type, include_lines, document_type, scan_frequency and close_inactive are repeating. Is there any option to group this, or something like, that they come only once?

Thanks.

That is probably the github issue you are looking for: https://github.com/elastic/beats/issues/2854

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