我在用EFK。
有人能在这里帮助如何启用fluentd插件。
我已经安装了以下3个插件作为我工作的一部分。
gem install fluent-plugin-concat
gem install fluent-plugin-detect-exceptions
gem install fluent-plugin-detect-exceptions-with-error
gem install fluent-plugin-record-modifier我看到在这里安装的宝石清单:
opsmxuser@opsmx-ind-setup:~/docker-compose-efk$ fluent-gem list
*** LOCAL GEMS ***
.
.
fluent-plugin-concat (2.4.0)
fluent-plugin-detect-exceptions (0.0.12)
fluent-plugin-detect-exceptions-with-error (0.0.3)
fluent-plugin-record-modifier (2.0.1)
fluentd (1.6.2, 0.14.25)
.
.但这3个插件没有启用。当我们在fluent.conf文件中使用这些配置时,在fluentd容器日志中获取以下错误消息。
2019年-08-05 12:34:55 +0000信息:解析配置文件成功path=“/ error_class=Fluent::ConfigError /etc/fluent.conf”2019-08-05 12:34:55 +0000错误:配置错误file=“/etc/error_class=Fluent::ConfigError error=”未知过滤器插件'concat‘。运行'gem搜索-rd fluent- plugin‘找到插件“2019-08-02 12:46:23 +0000错误:配置错误file="/fluentd/etc/fluent.conf”error_class=Fluent::ConfigError error=“未知输出插件’检测_异常‘。运行‘宝石搜索-rd fluent- plugin’找到插件“2019-08-05 12:34:55 +0000信息:解析配置文件是成功的path="/fluentd/etc/fluent.conf”2019-08-05 12:34:55 +0000错误:配置错误file="/fluentd/etc/fluent.conf“error_class=Fluent::ConfigError error=”未知过滤器插件‘error_class=Fluent::ConfigError_error=’。运行‘宝石搜索-rd流利插件’找到插件“
发布于 2020-12-09 14:17:39
添加到fluentd @type copy指令。
例子如下:
<match **>
@type copy
<store>
@type exec
@id load2clickhouse
command bash /usr/local/bin/insert_ch.sh {{ template "fluentdInsertTable" $ }}
format json
<buffer>
@type memory
chunk_limit_size 32m
queue_limit_length 32
flush_at_shutdown true
flush_interval 15s
flush_thread_count 4
</buffer>
</store>
<store>
@type elasticsearch
host ip
port 5044
logstash_format true
</store>
</match>发布于 2022-04-12 05:31:22
https://stackoverflow.com/questions/57360255
复制相似问题