Last active
January 1, 2016 05:39
-
-
Save toru-takahashi/8100368 to your computer and use it in GitHub Desktop.
for blog
This file contains 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
# dummy.logを取得するfluentdの設定 | |
<source> | |
type tail | |
path /var/log/dummy.log | |
pos_file /var/log/td-agent/dummy.log.pos | |
tag td.dummy.log | |
format csv | |
keys id,time,level | |
time_key time | |
time_format %Y-%m-%d %H:%M:%S | |
</source> | |
# 別サーバに転送 | |
<match td.dummy.*> | |
type forward | |
send_timeout 60s | |
recover_wait 10s | |
heartbeat_interval 1s | |
phi_threshold 8 | |
hard_timeout 60s | |
<server> | |
name monitoring_aggregator | |
host <SERVER IP> | |
port 24224 | |
weight 60 | |
</server> | |
</match> | |
# Treasure Agent Monitoring Serviceを利用する設定 | |
<source> | |
type td_monitor_agent | |
apikey <TD_API_KEY> | |
instance_id monitoring_test | |
</source> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment