Skip to content

[Question] Using RetryPolicy with CloudWatchLogsClient together  #1894

Closed
@ShahmirAhmed

Description

@ShahmirAhmed

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

Metadata

Metadata

Assignees

Labels

closing-soonThis issue will close in 4 days unless further comments are made.documentationThis is a problem with documentation.guidanceQuestion that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions