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
feat(client-cloudwatch-logs): CloudWatchLogs launches GetLogObject API with streaming support for efficient log data retrieval. Logs added support for new AccountPolicy type METRIC_EXTRACTION_POLICY. For more information, see CloudWatch Logs API documentation
* <p>Retrieves a large logging object (LLO) and streams it back. This API is used to fetch the content of large portions of log events that have been ingested through the PutOpenTelemetryLogs API.
32
+
* When log events contain fields that would cause the total event size to exceed 1MB, CloudWatch Logs automatically processes up to 10 fields, starting with the largest fields. Each field is truncated as needed to keep
33
+
* the total event size as close to 1MB as possible. The excess portions are stored as Large Log Objects (LLOs) and these fields are processed separately and LLO reference system fields (in the format <code>@ptr.$[path.to.field]</code>) are
34
+
* added. The path in the reference field reflects the original JSON structure where the large field was located. For example, this could be <code>@ptr.$['input']['message']</code>, <code>@ptr.$['AAA']['BBB']['CCC']['DDD']</code>, <code>@ptr.$['AAA']</code>, or any other path matching your log structure.</p>
35
+
* @example
36
+
* Use a bare-bones client and the command you need to make an API call.
37
+
* ```javascript
38
+
* import { CloudWatchLogsClient, GetLogObjectCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
* <p>If you want to create a field index policy for a single log group, you can use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html">PutIndexPolicy</a> instead of <code>PutAccountPolicy</code>. If you do so, that log
184
190
* group will use only that log-group level policy, and will ignore the account-level policy that
185
191
* you create with <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutAccountPolicy.html">PutAccountPolicy</a>.</p>
192
+
* <p>
193
+
* <b>Metric extraction policy</b>
194
+
* </p>
195
+
* <p>A metric extraction policy controls whether CloudWatch Metrics can be created through the
196
+
* Embedded Metrics Format (EMF) for log groups in your account. By default, EMF metric creation
197
+
* is enabled for all log groups. You can use metric extraction policies to disable EMF metric
198
+
* creation for your entire account or specific log groups.</p>
199
+
* <p>When a policy disables EMF metric creation for a log group, log events in the EMF format
200
+
* are still ingested, but no CloudWatch Metrics are created from them.</p>
201
+
* <important>
202
+
* <p>Creating a policy disables metrics for AWS features that use EMF to create metrics, such
203
+
* as CloudWatch Container Insights and CloudWatch Application Signals. To prevent turning off
204
+
* those features by accident, we recommend that you exclude the underlying log-groups through a
205
+
* selection-criteria such as <code>LogGroupNamePrefix NOT IN ["/aws/containerinsights",
* <p>Removes the specified tags from the specified log group.</p>
36
36
* <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a>. To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
37
-
* <p>CloudWatch Logs doesn't support IAM policies that prevent users from assigning specified
38
-
* tags to log groups using the <code>aws:Resource/<i>key-name</i>
39
-
* </code> or
40
-
* <code>aws:TagKeys</code> condition keys. </p>
37
+
* <p>When using IAM policies to control tag management for CloudWatch Logs log groups, the
38
+
* condition keys <code>aws:Resource/key-name</code> and <code>aws:TagKeys</code> cannot be used to restrict which tags
39
+
* users can assign. </p>
41
40
*
42
41
* @deprecated Please use the generic tagging API UntagResource
0 commit comments