salt.engines.fluent

An engine that reads messages from the salt event bus and pushes them onto a fluent endpoint.

New in version 3000.

Configuration:

All arguments are optional

Example configuration of default settings

engines:
  - fluent:
      host: localhost
      port: 24224
      app: engine

Example fluentd configuration

<source>
    @type forward
    port 24224
</source>

<match saltstack.**>
    @type file
    path /var/log/td-agent/saltstack
</match>
depends:

fluent-logger

salt.engines.fluent.start(host='localhost', port=24224, app='engine')

Listen to salt events and forward them to fluent

Parameters:
  • host (str) -- Host running fluentd agent. Default is localhost

  • port (int) -- Port of fluentd agent. Default is 24224

  • app (str) -- Text sent as fluentd tag. Default is "engine". This text is appended to "saltstack." to form a fluentd tag, ex: "saltstack.engine"