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

Document Retry_Limit for output plugins #860

Closed
Globegitter opened this issue Oct 24, 2018 · 4 comments
Closed

Document Retry_Limit for output plugins #860

Globegitter opened this issue Oct 24, 2018 · 4 comments

Comments

@Globegitter
Copy link

Is your feature request related to a problem? Please describe.
As a note, I have already asked on Slack but not received any response, so posting here. There is very little mention of Retry_Limit in the docs and nothing at all in the output plugin sections. It would be great to have that documented in all plugins that support that.

And further does the HTTP output plugin support it? I could not find any mention of that anywhere in issues or the docs.

@edsiper
Copy link
Member

edsiper commented Oct 24, 2018

Sorry about the missing docs. Retry_Limit is applicable to all output plugins, you can do:

  • Retry_Limit N (where N is a number >= 1)
  • Retry_Limit False (no limits, retry forever)

@edsiper edsiper self-assigned this Oct 24, 2018
@Globegitter Globegitter changed the title Document Retry_Limit for output plugins (and implement for HTTP if it does not exist) Document Retry_Limit for output plugins Oct 25, 2018
@Globegitter
Copy link
Author

Great thanks for the quick response on that.

@edsiper
Copy link
Member

edsiper commented Oct 26, 2018

Documented here:

https://docs.fluentbit.io/manual/configuration/scheduler

thanks

@vinoth3105
Copy link

vinoth3105 commented Dec 24, 2020

How to add retry limit in input plugin.

example code :
def on_timer
begin
res = RestClient::Request.execute request_options
record, body = get_record(res)
rescue StandardError => err
record = { "url" => @url, "error" => err.message }
if err.respond_to? :http_code
record["status"] = err.http_code || 0
else
record["status"] = 0
end
end
end

so problem here when we hit the restclient API, if we are not getting any response.
we should handled retryl imit.
how to add retry function in on_timer method, can you please help on that..

rawahars pushed a commit to rawahars/fluent-bit that referenced this issue Oct 24, 2022
* installation: updates for 1.9.7 release

Signed-off-by: Patrick Stephens <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants