Description
Hey team, I had a general question on the usage of using a RetryPolicy
object with a CloudWatchLogsClient
object. Essentially, I am looking to use a CloudWatchLogsClient
to send logs to my CloudWatch instance (Log Group & Log Stream) using the putLogEvents() function and I wanted to configure a RetryPolicy
so that whenever any error/malfunction/issue occurs and there is a halt to publish logs, I can retry sending those logs that may have gotten dropped. So I'm wondering, how does one attach a RetryPolicy
to their specific CloudWatchLogsClient
that sends logs?
Edit:
Also I've taken a look at the AWS code examples repository and couldn't find any examples of using the RetryPolicy
. If you have any code samples/examples of using the RetryPolicy
, I would appreciate it if you could share those with me.
Edit pt. 2:
Does the putLogEvents() function have its own retry default configurations when a log gets dropped or there is some throttling to the network?
Your Environment
- AWS Java SDK version used: v2.13.15
- JDK version used: Java 11
- Operating System and version: macOS Mojave v10.14.6