Skip to content

Instantly share code, notes, and snippets.

@youyo
Last active December 11, 2015 19:58
Show Gist options
  • Save youyo/4652167 to your computer and use it in GitHub Desktop.
Save youyo/4652167 to your computer and use it in GitHub Desktop.
<source>
type forward
port 24224
bind 0.0.0.0
</source>
<match ping.**>
type copy
<store>
type redeliver
regexp ^ping\.(.*)$
replace process.\1
</store>
<store>
type redeliver
regexp ^ping\.(.*)$
replace checker.\1
</store>
</match>
<match process.**>
type forest
subtype flowcounter
remove_prefix process
<template>
count_keys *
unit minute
aggregate all
tag zabbix.ping.__TAG__
</template>
</match>
<match zabbix.ping.**>
type forest
subtype zabbix
remove_prefix zabbix.ping
<template>
zabbix_server zabbix.server
host __TAG__
name_keys count
add_key_prefix fluent_process
</template>
</match>
<match checker.**>
type forest
subtype ping_message_checker
remove_prefix checker
<template>
tag missing.ping.__TAG__
check_interval 60
notification_times 60
</template>
</match>
<match missing.ping.**>
type file
path /var/log/td-agent/ping_error
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment