fluentbit_slack_output

command module
v0.0.0-...-5334da4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 8 Imported by: 0

README

fluentbit slack output plugin (prettyslack)

Fluentbit Slack Outputn Plugin

Original slack output plugin can just send whole data and does not support formatting.

sample slack message

    [OUTPUT]
        Name             prettyslack
        Match            kernel.slack
        Webhook          https://hooks.slack.com/services/TXXXXXXXXXX/BXXXXXXXXX/XXXXXXXXXXXXXX
        Channel          myChannel
        Message_Field    msg
        Title            logs from ${NODE_NAME}
        Max_Attachments  7
  • Webhook : slack incomming webhook url

  • Channel : slack channel name

  • Title : slack message title

  • Message_Field : key for first line of slack message

  • Max_Attachments : number of max attachments of 1 slack message. ( Defaut : 5, Max : 20)

  • Color value of attachment from data with key 'color' (Default : #A9AAAA)

Reference

"slack.go" : copied from https://github.com/ashwanthkumar/slack-go-webhook and modified to add block feature

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL