Skip to content

Instantly share code, notes, and snippets.

@cou929
Created November 18, 2015 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cou929/40e8af9639aad31fedf6 to your computer and use it in GitHub Desktop.
Save cou929/40e8af9639aad31fedf6 to your computer and use it in GitHub Desktop.
##
# fluent log Slack Notification
<match fluent.**>
type record_modifier
tag internal.message.${hostname}
host ${hostname}
include_tag_key
tag_key original_tag
</match>
<match internal.message.*>
type filter
all allow
deny message: /^xxxx/, message: /^yyyy/
</match>
<match filtered.internal.message.*>
type suppress
interval 10
num 2
attr_keys host,message
remove_tag_prefix filtered.
add_tag_prefix fluentd.
</match>
<match fluentd.internal.message.*>
type buffered_slack
api_key xxxx
team mtburn
channel %23fluentd-notify
username app-notifier
color warn
icon_emoji :ghost:
timezone Asia/Tokyo
buffer_path /mtburn/tmp/td-agent/fluentd-log-slack-buffer
flush_interval 5s
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment