How to reduce / group repeating prospector configs


#1

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.


(ruflin) #2

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


(system) #3

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