You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# CloudWatch Logs code examples for the SDK for Java 2.x
2
+
3
+
## Overview
4
+
5
+
Shows how to use the AWS SDK for Java 2.x to work with Amazon CloudWatch Logs.
6
+
7
+
<!--custom.overview.start-->
8
+
<!--custom.overview.end-->
9
+
10
+
_CloudWatch Logs monitor, store, and access your log files from Amazon Elastic Compute Cloud instances, AWS CloudTrail, or other sources._
11
+
12
+
## ⚠ Important
13
+
14
+
* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/) and [Free Tier](https://aws.amazon.com/free/).
15
+
* Running the tests might result in charges to your AWS account.
16
+
* We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege).
17
+
* This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services).
18
+
19
+
<!--custom.important.start-->
20
+
<!--custom.important.end-->
21
+
22
+
## Code examples
23
+
24
+
### Prerequisites
25
+
26
+
For prerequisites, see the [README](../../README.md#Prerequisites) in the `javav2` folder.
27
+
28
+
29
+
<!--custom.prerequisites.start-->
30
+
<!--custom.prerequisites.end-->
31
+
32
+
### Single actions
33
+
34
+
Code excerpts that show you how to call individual service functions.
0 commit comments