Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix graylog connecting issue #1506

Merged
merged 3 commits into from
Jul 12, 2024
Merged

Fix graylog connecting issue #1506

merged 3 commits into from
Jul 12, 2024

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Jul 11, 2024

Closes: #1479

Feedback from @mszyzdek
ref. #1479 (comment)

@daipom
Copy link
Contributor

daipom commented Jul 11, 2024

#1479 (comment)

Sorry, I don't understand #219.
Can we revert #219 now?

@kenhys kenhys marked this pull request as draft July 11, 2024 08:32
@kenhys
Copy link
Contributor Author

kenhys commented Jul 11, 2024

Oh, gelf-rb/issues/63 may be still brocker.

@kenhys
Copy link
Contributor Author

kenhys commented Jul 11, 2024

For graylog, fluent-plugin-json-in-json-2 depends on yajl-ruby...

@daipom
Copy link
Contributor

daipom commented Jul 11, 2024

Thanks. I see...

@kenhys
Copy link
Contributor Author

kenhys commented Jul 11, 2024

TODO: eliminate yajl-ruby (yajl/json_gem)

@kenhys
Copy link
Contributor Author

kenhys commented Jul 11, 2024

Purge yajl/json_gem explicitly from image?

@kenhys kenhys added the pending To be done in the future label Jul 11, 2024
@daipom
Copy link
Contributor

daipom commented Jul 12, 2024

#1479 (comment)

The issue of gelf-rb 3.1.0 remains partially.

kenhys added 3 commits July 12, 2024 16:40
Closes: fluent#1479

Feedback from @mszyzdek
ref. fluent#1479 (comment)

* graylog flavour of fluentd-kubernetes-daemonset uses gelf 3.0.0 and
  this version of gelf gem has Fixnum in code,
  graylog-labs/gelf-rb@7cc3cbb
* in ruby 3.2 Fixnum was removed after previous deprecation in version 2.4
  https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
* ruby in newest fluentd was upgraded to 3.2
  fluent/fluentd-docker-image@4f1d5e8
  so it also happened in fluentd-kubernetes-daemonset
* gelf 3.0.0 cannot work with ruby 3.2+ so we can see sad error on container start

NOTE: Even though gelf was updated to 3.1.0, still it has problem with
reloading Fluentd configuration with SIGUSR2. This is known issue
since Fluentd 1.8.0.
ref. fluent/fluentd#2709

Signed-off-by: Kentaro Hayashi <[email protected]>
Signed-off-by: Kentaro Hayashi <[email protected]>
Signed-off-by: Kentaro Hayashi <[email protected]>
@kenhys kenhys removed the pending To be done in the future label Jul 12, 2024
@kenhys kenhys marked this pull request as ready for review July 12, 2024 07:56
@kenhys kenhys requested a review from daipom July 12, 2024 07:56
Copy link
Contributor

@daipom daipom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.
Although gelf 3.1.0 has a remaining issue, we should update it because the impact is limited to not being able to SIGUSR2 to reload the config.

@kenhys kenhys merged commit d5e6029 into fluent:master Jul 12, 2024
1 check passed
@kenhys kenhys deleted the update-graylog branch July 12, 2024 08:51
@kenhys
Copy link
Contributor Author

kenhys commented Jul 12, 2024

Thanks, after #1507 was merged, let's ship it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fluentd worker crashing on startup when connecting to Graylog
2 participants