Encountering error: uninitialized constant Fluent::Plugin::GrokParser::NoneParser (NameError)
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
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluent/fluent-plugin-grok-parser
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
-
Multiline grock issueĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 48/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
Tất cả issue của fluent/fluent-plugin-grok-parser
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
palladius/rails8-app-on-gcp#198 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
WikiEducationFoundation/WikiEduDashboard#7258 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing es-ES translation: components/student/TracksList.tsx:tracksList.searchLanguageTracksĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
manyfold3d/manyfold#7526 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
riscv/riscv-unified-db#2797 ·
Maintainer thường phản hồi trong vòng 1 ngày