td-agentの標準的な環境をつくる
DMG拾ってくる場所
Index of packages.treasuredata.com/2/macosx
設定ファイルの場所
/etc/td-agent/td-agent.conf
logの場所
/var/log/td-agent/td-agent.log
起動
sudo launchctl load /Library/LaunchDaemons/td-agent.plist
停止
sudo launchctl unload /Library/LaunchDaemons/td-agent.plist
動作確認のためtsv食わせてみる
<source> type tail format tsv keys col1,col2,col3 tag hoge.fuga path /usr/local/var/log/hoge.log pos_file /tmp/td-agent.pos </source> <match hoge.**> type stdout </match>
plugin入れる
fluent-plugin-kinesis
sudo /opt/td-agent/embedded/bin/gem fluent-plugin-kinesis