-
Notifications
You must be signed in to change notification settings - Fork 57
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
Ensuring logs make it to Graylog server #7
Comments
fluentd should take care of this automatically. out_gelf is a "buffered plugin", which means that it maintains an internal queue of "chunks" (a chunk is a collection of events), which it buffers (by default) to memory, and it tries to send these to the Graylog server but will retry if it encounters an error. (See http://docs.fluentd.org/articles/output-plugin-overview#list-of-buffered-output-plugins for more info on tuning buffering including the size of the buffer and how long to retry.) However, it would be great if you could confirm this behavior is working for you, and let me know if you seem to be loosing any messages! |
Thank you @emsearcy for confirming what I was expecting. I can't seem to get the expected behavior out of this though. I have tested by shutting down an input within the Graylog cluster. This input is what my Fluent configuration is set to write to and when this input is not available it seems like the generated logs during that period are lost since when the input comes back up no information during that period is available within Graylog. My configuration file looks like this:
I've also attempted a in memory buffer like so:
|
Can you try using TCP to connect to Graylog? UDP is stateless (fire and forget) so there isn't any error checking to see if a GELF packet was received or not. |
Hello, It's works with TCP, but there is a new problem comment here #28 |
I'm just getting started with Graylog and fluent but is there any way to ensure logs get delivered to the Graylog server even if the Graylog server is temporarily unreachable? Thanks!
The text was updated successfully, but these errors were encountered: