puppet-filebeat icon indicating copy to clipboard operation
puppet-filebeat copied to clipboard

Multiple outputs

Open mdklapwijk opened this issue 4 years ago • 2 comments

First try at allowing filebeat having multiple outputs:

  • shared inputs; all outputs share the same input config,
  • named configs; each output has its own main yaml config,
  • named services; each output has is own systemd unit file,
  • composite service; to start and stop all named services at once.

Note: only tested on Debian 10.

mdklapwijk avatar Dec 31 '20 11:12 mdklapwijk

Thanks @mdklapwijk! This will help a lot moving towards some form of support on #48 too.

It sounds like there are a lot of changes in here in addition to supporting multiple outputs, including deprecating support for Filebeat 6 (probably time to do that anyway), switches to the elastic_stack::repo module for the apt/yum repos, and 2 new module dependencies.

I'd like to add some unit tests to the systemd logic so we can confidently make changes in the future (I need to move them from Travis to GitHub actions so they run here too).

pcfens avatar Jan 01 '21 02:01 pcfens

Hi Phil,

I was planning on starting a stripped version, dropping FB6, Windows support etc. So I could implement filebeat::output, just like filebeat::input. As stated, this was my first attempt at this and it was done in such a manner it would not interfere with the already existent logic, hence the big foreach-loop over the outputs-hash in config.pp.

If you are interested I would create a new branch for this later this week, as I already (partly) done the filebeat::output, but it broke backward compat. a bit...

Regards,

Marcel

mdklapwijk avatar Jan 04 '21 12:01 mdklapwijk