NETWAYS / ansible-collection-elasticstack

A collection to install and manage the Elastic Stack
GNU General Public License v3.0
9 stars 8 forks source link

Filebeat: Config loading #105

Open xtruthx opened 1 year ago

xtruthx commented 1 year ago

Hi,

you should remove filebeat input configuration from the service YAML filebeat.yml.j2 and start working multiple YAML config files from subdirectory like:

filebeat.config.inputs:
  enabled: true
  path: inputs.d/*.yml

From there you can load the different input configurations for e.g. TCP or UDP. You could also then introduces tags which roll out different kind of input types on your hosts

This keeps the main configuration in filebeat.yml thin and better to read.

widhalmt commented 1 year ago

Nice catch! Thanks for the feedback. I can see where this would help with management.