首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何启用流畅的封堵器

如何启用流畅的封堵器
EN

Stack Overflow用户
提问于 2019-08-05 14:05:03
回答 2查看 3.6K关注 0票数 2

我在用EFK。

有人能在这里帮助如何启用fluentd插件。

我已经安装了以下3个插件作为我工作的一部分。

代码语言:javascript
复制
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

我看到在这里安装的宝石清单:

代码语言:javascript
复制
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流利插件’找到插件“

EN

回答 2

Stack Overflow用户

发布于 2020-12-09 14:17:39

添加到fluentd @type copy指令。

例子如下:

代码语言:javascript
复制
    <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>
票数 0
EN

Stack Overflow用户

发布于 2022-04-12 05:31:22

我今天也遇到了同样的问题。

我遵循fluent github问题,构建一个带有插件的图像

树立自己的形象

对我来说很管用

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57360255

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档