fluentdを導入する
- Fluentd is an open source data collector for unified logging layer.
- Fluentd allows you to unify data collection and consumption for a better use and understanding of data.
種類 | 場所 |
---|---|
fluentd本体 | /etc/init.d/td-agent |
fluentd起動 | /etc/init.d/td-agent start |
fluentd停止 | /etc/init.d/td-agent stop |
fluentd設定ファイル | /etc/td-agent/td-agnet.conf |
fluentdログファイル | /var/log/td-agent/ |
1 ダウンロードおよびインストール
1.1 yumにtreasuredataレポジトリを追加します。
# add GPG key
rpm --import http://packages.treasuredata.com/GPG-KEY-td-agent
# add treasure data repository to yum
cat >/etc/yum.repos.d/td.repo <<'EOF';
[treasuredata]
name=TreasureData
baseurl=http://packages.treasuredata.com/redhat/\$basearch
gpgcheck=1
gpgkey=http://packages.treasuredata.com/GPG-KEY-td-agent
EOF
# update sources
yum check-update
# install the toolbelt
yes | yum install -y td-agent