Created
November 18, 2015 21:43
-
-
Save cou929/40e8af9639aad31fedf6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# 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