Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Adding retry logic to Loggly appenders #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ellisdc
Copy link

@ellisdc ellisdc commented Feb 7, 2020

I have experienced periodic socket timeouts on the client side as well as server side 504 errors while using the loggly appenders, both of which seem to be temporary conditions. I added retry logic to both appenders that will retry failed requests up to the specified number of times. The default retry limit is 3 retries, but the user can specify the max retry limit in the appender configurations.

For the batch appender, I do not increment the failure count unless the retry limit has been reached.

The retry logic has thus far eliminated the periodic failures I was experiences (e.g. the request has always been successful on subsequent tries).

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

Successfully merging this pull request may close these issues.

None yet

1 participant