# How to reduce / group repeating prospector configs

**URL:** <https://discuss.elastic.co/t/how-to-reduce-group-repeating-prospector-configs/67100>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 24, 2016, 11:24am UTC](https://discuss.elastic.co/t/how-to-reduce-group-repeating-prospector-configs/67100 "2016-11-24T11:24:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [November 24, 2016, 11:24am UTC](https://discuss.elastic.co/t/how-to-reduce-group-repeating-prospector-configs/67100/1 "2016-11-24T11:24:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 25, 2016, 10:08am UTC](https://discuss.elastic.co/t/how-to-reduce-group-repeating-prospector-configs/67100/2 "2016-11-25T10:08:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 23, 2016, 10:08am UTC](https://discuss.elastic.co/t/how-to-reduce-group-repeating-prospector-configs/67100/3 "2016-12-23T10:08:45Z")

</div>

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