Ubuntu に td-agent 入れて Slack に rails アプリのエラーを通知するようにしたときの備忘録。 td-agent インストール td-agent のインストールは下記に書いてある通り。 Installing Fluentd Using deb Package | Fluentd Ubuntu 16.04 なので下記で入れた。 $ curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh | sh プラグインのインストール td-agent-gem で slack のプラグインをインストール。 $ td-agent-gem install fluent-plugin-slack 設定ファイルの修正 /etc/td-agent/td-agent.conf を下記のよう