The Slack output plugin delivers records or messages to your preferred Slack channel. It formats the outgoing content in JSON format for readability.
This connector uses Slack incoming webhooks to post messages to Slack channels. Using this plugin in conjunction with the Stream Processor is a good combination for alerting.
Before configuring this plugin, set up your incoming webhook. For help, see the Slack documentation.
After you have obtained the Webhook address you can place it in the configuration.
This plugin supports the following parameters:
| Key | Description | Default |
|---|---|---|
webhook |
Absolute address of the webhook provided by Slack. | none |
workers |
The number of workers to perform flush operations for this output. | 0 |
Get started with this configuration file:
{% tabs %} {% tab title="fluent-bit.yaml" %}
pipeline:
outputs:
- name: slack
match: '*'
webhook: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX{% endtab %} {% tab title="fluent-bit.conf" %}
[OUTPUT]
Name slack
Match *
Webhook https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
{% endtab %} {% endtabs %}