twitter - fluentd twitter插件发生错误'access_token'参数是必需的,即使我写它
问题描述
我对 fluentd twitter 插件有疑问。它告诉我'access_token' parameter is required
,但我已经给了它 access_token 。
这是我的/etc/td-agent/td-agent.conf
(我重新生成了密钥和秘密,所以可以显示它。)
<source>
@type twitter
consumer_key CmHQ2sJOoqtkp3ePdqrBySQQ6
consumer_secret SoUzVvNe6BjzNH554qTupK849Wgsub31wMRtDBGF1M1Ldh9HiY
oauth_token 1351694296613679104-2PEN0LoOzeDN1qlxS2p3IPBchEQDah
oauth_token_secret oNqwr57MU5TGb21P1MEU4GfgcITDOs1LmgN5tYiPlfHcG
tag input.twitter.sampling
timeline sampling
keyword game
output_format nest
</source>
<match input.twitter>
@type stdout
</match>
这是我执行时的日志td-agent
~$ td-agent
2021-01-20 07:13:09 +0000 [info]: parsing config file is succeeded path="/etc/td-agent/td-agent.conf"
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '4.1.1'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-kafka' version '0.14.1'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-prometheus' version '1.8.2'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-prometheus_pushgateway' version '0.0.2'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-record-modifier' version '2.1.0'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-rewrite-tag-filter' version '2.3.0'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-s3' version '1.4.0'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-systemd' version '1.0.2'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-td' version '1.1.0'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-twitter' version '0.6.1'
2021-01-20 07:13:09 +0000 [info]: gem 'fluent-plugin-webhdfs' version '1.2.5'
2021-01-20 07:13:09 +0000 [info]: gem 'fluentd' version '1.11.2'
2021-01-20 07:13:09 +0000 [error]: config error in:
<source>
@type twitter
consumer_key xxxxxx
consumer_secret xxxxxx
oauth_token 1351694296613679104-2PEN0LoOzeDN1qlxS2p3IPBchEQDah
oauth_token_secret oNqwr57MU5TGb21P1MEU4GfgcITDOs1LmgN5tYiPlfHcG
tag "input.twitter.sampling"
timeline sampling
keyword "game"
output_format nest
</source>
2021-01-20 07:13:09 +0000 [error]: config error file="/etc/td-agent/td-agent.conf" error_class=Fluent::ConfigError error="'access_token' parameter is required"
解决方案
推荐阅读
- markdown - Doxygen:指向头文件的降价链接在 html 输出中被破坏
- html - 是否可以将另一个元素移动到某个位置下方:粘性?
- c++ - C++ 擦除(如果存在)
- redux - React / Redux:导航到详细信息视图时的单一事实来源
- html - Shopify 页面在移动设备和桌面设备上的显示方式不同
- r - 将布尔帧转换为R中的因子
- javascript - 如何在javascript中的2个模式之间拆分字符串
- oracle - 在oracle中查询最后一天的所有数据
- java - Project Reactor 和 Java 内存模型
- django - 无法启动 docker 项目