问题描述
我是新手,并尝试从示例编写自定义插件 https://github.com/xitation/fluent-plugin-paloalto-71-parser/blob/master/parser_palo_alto.rb
我将文件放在/ etc / td-agent / plugin目录中,当我尝试重新启动代理时,由于找不到流畅的解析器而无法启动。
require 'fluent/plugin/parser'
module Fluent::Plugin
class TextParser
class palofirewallParser < Parser
# Register this parser as "palofirewall"
Fluent::Plugin.register_parser("palofirewall",self)
config_param :time_format,:string,default: "%b %e %H:%M:%S"
def initialize()
super
fluentd [1698]:/opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in`require':/ etc / td-agent / plugin / parser >
我使用命令安装了解析器
td-agent-gem安装fluent-plugin-parser_cef
但这不会将其安装在/ etc / td-agent / plugin中。如何在td-agent中为自定义插件调用解析器?请帮助
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)