Encountering error: uninitialized constant Fluent::Plugin::GrokParser::NoneParser (NameError)

Đang mở
#95 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi khởi động với Fluentd 1.13.3, fluent-plugin-grok-parser 2.0.1 và cấu hình tail/grok được cung cấp. Đọc lib/fluent/plugin/parser_grok.rb ở dòng 17 và theo dõi cách parser được khởi tạo; hoàn tất khi cấu hình khởi động mà không gặp NoneParser NameError đã được báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hello,

Fluentd version: 1.13.3
Grok parser plugin version: 2.0.1

I'm currently experiencing an issue when using the grok parser, where I receive an error during Fluentd startup:

fluentd[24300]: /var/lib/gems/2.5.0/gems/fluent-plugin-grok-parser-2.0.1/lib/fluent/plugin/parser_grok.rb:17:in `initialize': uninitialized constant Fluent::Plugin::GrokParser::NoneParser (NameError)
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/plugin.rb:163:in `new'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/plugin.rb:163:in `new_impl'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/plugin.rb:137:in `new_parser'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/plugin_helper/parser.rb:89:in `block in configure'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/plugin_helper/parser.rb:85:in `each'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/plugin_helper/parser.rb:85:in `configure'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/plugin/in_tail.rb:134:in `configure'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/plugin.rb:178:in `configure'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/root_agent.rb:317:in `add_source'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/root_agent.rb:158:in `block in configure'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/root_agent.rb:152:in `each'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/root_agent.rb:152:in `configure'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/engine.rb:105:in `configure'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/engine.rb:80:in `run_configure'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/supervisor.rb:663:in `run_supervisor'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/lib/fluent/command/fluentd.rb:344:in `<top (required)>'
fluentd[24300]:         from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
fluentd[24300]:         from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
fluentd[24300]:         from /var/lib/gems/2.5.0/gems/fluentd-1.13.3/bin/fluentd:15:in `<top (required)>'
fluentd[24300]:         from /usr/local/bin/fluentd:23:in `load'
fluentd[24300]:         from /usr/local/bin/fluentd:23:in `<main>'

My config section is:

<source>
    @type tail
    @id source_tail_openvpn
    path /var/log/openvpn.log
    pos_file /var/log/fluentd/pos_openvpn.log.pos
    tag openvpn
    <parse>
        @type grok
        grok_pattern %{TIMESTAMP_ISO8601:@timestamp} %{GREEDYDATA:message}
    </parse>
</source>
Ngôn ngữ chính
Ruby
Star
108
Fork
33
Merge trung bình
1 giờ 47 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fluent/fluent-plugin-grok-parser

Tất cả issue của fluent/fluent-plugin-grok-parser

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.