Skip to content

Instantly share code, notes, and snippets.

@toru-takahashi
Last active January 1, 2016 05:39
Show Gist options
  • Save toru-takahashi/8100368 to your computer and use it in GitHub Desktop.
Save toru-takahashi/8100368 to your computer and use it in GitHub Desktop.
for blog
# 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