fluentdの起動ができない
解決したいこと
以下の記事を参考にfluentdの設定ファイルを変更したいのですが、エラーが出ます。
以下の記事を参考にtd-agent2からtd-agent4、各種プラグインをアップデートし、の記述を変更しました。
発生している問題・エラー
Job for td-agent.service failed because the control process exited with error code. See "systemctl status td-agent.service" and "journalctl -xe" for details.
そこで
systemctl status td-agent.service
と入力すると
td-agent.service: control process exited, code=exited status=1
11月 25 14:28:27 〇〇〇〇 systemd[1]: Failed to start td-agent: Fluentd based data collector for Treasure Data.
11月 25 14:28:27 〇〇〇〇 systemd[1]: Unit td-agent.service entered failed state.
11月 25 14:28:27 〇〇〇〇 systemd[1]: td-agent.service failed.
11月 25 14:28:27 〇〇〇〇 systemd[1]: td-agent.service holdoff time over, scheduling restart.
11月 25 14:28:27 〇〇〇〇 systemd[1]: Stopped td-agent: Fluentd based data collector for Treasure Data.
11月 25 14:28:27 〇〇〇〇 systemd[1]: start request repeated too quickly for td-agent.service
11月 25 14:28:27 〇〇〇〇 systemd[1]: Failed to start td-agent: Fluentd based data collector for Treasure Data.
11月 25 14:28:27 〇〇〇〇 systemd[1]: Unit td-agent.service entered failed state.
11月 25 14:28:27 〇〇〇〇 systemd[1]: td-agent.service failed.
と出ました。
次に
journalctl -xe
と入力すると以下が出ました。
-- Unit td-agent.service has finished shutting down.
11月 25 14:48:38 〇〇〇〇 systemd[1]: start request repeated too quickly for td-agent.service
11月 25 14:48:38 〇〇〇〇 systemd[1]: Failed to start td-agent: Fluentd based data collector for Treasure Data.
-- Subject: Unit td-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit td-agent.service has failed.
--
-- The result is failed.
11月 25 14:48:38 〇〇〇〇 systemd[1]: Unit td-agent.service entered failed state.
11月 25 14:48:38 〇〇〇〇 systemd[1]: td-agent.service failed.
11月 25 14:50:01 〇〇〇〇 systemd[1]: Created slice User Slice of root.
-- Subject: Unit user-0.slice has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-0.slice has finished starting up.
--
-- The start-up result is done.
11月 25 14:50:01 〇〇〇〇 systemd[1]: Started Session 5271 of user root.
-- Subject: Unit session-5271.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-5271.scope has finished starting up.
--
-- The start-up result is done.
11月 25 14:50:01 〇〇〇〇 CROND[32430]: (root) CMD (/usr/lib64/sa/sa1 1 1)
11月 25 14:50:01 〇〇〇〇 systemd[1]: Removed slice User Slice of root.
-- Subject: Unit user-0.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-0.slice has finished shutting down.
11月 25 14:50:33 〇〇〇〇 dhclient[2748]: XMT: Solicit on eth0, interval 118230ms.
11月 25 14:52:31 〇〇〇〇 dhclient[2748]: XMT: Solicit on eth0, interval 108120ms.
11月 25 14:53:43 〇〇〇〇 sshd[32439]: Did not receive identification string from 23.183.82.135 port 33958
11月 25 14:54:19 〇〇〇〇 dhclient[2748]: XMT: Solicit on eth0, interval 122230ms.
該当するソースコード
以下が編集したsudo vim /etc/td-agent/td-agent.confの設定ファイルです。
<source>
@type twitter
consumer_key 〇〇〇〇
consumer_secret 〇〇〇〇
access_token 〇〇〇〇
access_token_secret 〇〇〇〇
tag input.twitter
timeline sampling
lang ja
output_format nest
</source>
<match input.twitter>
@type mysql_bulk
host 〇〇〇〇
database textdata
column_names id,user_id,text,created_at
table tweet
username 〇〇〇〇
password 〇〇〇〇
<buffer>
flush_interval 10s
</buffer>
</match>
0