Move CometAPI diagnostic logs to a new CloudWatch Logs Essentials group when your team reads them through ad hoc Logs Insights queries. Keep streams that feed metric filters, subscription filters, or Live Tail on Standard. Estimate the savings from the GB you can move. Standard and Essentials use the same rates for archive storage and Logs Insights queries. CloudWatch Logs classes

Last reviewed: 2026-11-22 (UTC, 2026-11-23 in Asia/Shanghai).

Find streams that can leave Standard

Start at the application component that calls CometAPI. List the CloudWatch group it writes to and every tool that reads that group. For each reader, record the feature it uses, the team that owns it, and how the team would retrieve the same evidence from the new group. A stream with low read volume can still feed a subscription that an incident workflow depends on.

How a reader uses the groupPlacement to verify
An engineer searches sanitized attempt events by ID and time in Logs InsightsEssentials candidate. Run the saved query on the new group.
A dashboard uses field indexes or its query contains filterIndexStandard for that query. Verify the scan volume if the owner replaces it with a regular filter query.
A metric filter or Embedded Metric Format event creates an alarm metric, a subscription filter forwards events, or an operator uses Live TailStandard for the stream those readers need.
A support script reads events with GetLogEvents or FilterLogEventsStandard for that script. Validate any replacement based on Logs Insights with the script owner.

Inspect the dashboards, saved queries, and reporting jobs themselves. Essentials supports the usual fields, filter, and sort query workflow. It excludes pattern, diff, filterIndex, and unmask from Logs Insights QL. Logs Insights QL commands supported in each class

Assign an opaque attempt ID before calling CometAPI. Allowlist that ID, the outcome, elapsed time, and an approved model group for diagnostics. In the durable accounting record, capture the chat completion’s returned id, model, and usage when available. Mark attempts with missing usage as unresolved. An operator can join the two records by attempt ID and investigate from those fields. CometAPI chat completion reference · Keep AI API cost records independent of trace sampling

Price the ingested GB that will move

Start with the group’s ingestion volume over a representative billing period. For a shared group, count the bytes of serialized events at each application logger before sending them, then divide the eligible streams’ bytes by the measured total. Apply that share to the group’s measured ingestion GB as an estimate. Use the billing export to reconcile the account and Region totals. Price the moved GB using the applicable billing category, rate bands, and allowances. Amazon CloudWatch pricing

Suppose the current group ingests 1,200 billable GB per month and the reader inventory clears 900 GB for Essentials. At illustrative rates of $0.48 per GB for Standard and $0.24 per GB for Essentials, the ingestion budget changes as follows.

Monthly ingestionAll StandardAfter the split
Standard1,200 GB × $0.48 = $576300 GB × $0.48 = $144
Essentials$0900 GB × $0.24 = $216
Total$576$360

The forecast saves $216 per month on ingestion under those assumptions. Add the storage and query changes implied by your rollout. For example, a dashboard that searches both groups during the changeover might scan an extra 2,000 GB per month. At an assumed $0.005 per additional GB scanned, that adds $10, bringing the modeled monthly savings to $206 if storage is equal and each event is written once. Include duplicate ingestion for any period when you send the same event to both groups. Allocate a shared logging bill once from the reconciled total. Allocate shared AI gateway costs with separate cost pools

Verify the new group and accept both class values

CloudWatch fixes the class when a log group is created. Create a new Essentials group in the same account and Region as the canary workload. Apply the approved retention and encryption settings and grant the canary writer and incident readers access to that destination. AWS accepts ESSENTIALS and INFREQUENT_ACCESS on creation. Its documentation says read APIs including DescribeLogGroups will start returning ESSENTIALS in place of INFREQUENT_ACCESS in December 2026. Update drift checks to recognize either value for an Essentials group. CloudWatch Logs class names · AWS CLI create-log-group

In AWS CLI v2, set AWS_PROFILE to your authorized sandbox profile, AWS_REGION to its Region, and COMETAPI_DIAGNOSTIC_LOG_GROUP to the exact canary group name. Read the class and retention from the deployed group.

aws logs describe-log-groups \
  --profile "$AWS_PROFILE" \
  --region "$AWS_REGION" \
  --log-group-name-prefix "$COMETAPI_DIAGNOSTIC_LOG_GROUP" \
  --query 'logGroups[].{Name:logGroupName,Class:logGroupClass,Days:retentionInDays,Policy:retentionPolicyName}'

Require an exact name match and one of the two Essentials values. Compare Days with the approved period. When Policy is present, the reported days come from the named account policy. Resolve a retention mismatch before routing events. AWS CLI describe-log-groups

Prove the canary before redirecting traffic

Use your application logger to send a single event whose entire @message is the standalone JSON object {"attempt_id":"fixture-01","outcome":"completed","elapsed_ms":380}. In the Logs Insights console, select the new group and a time range that includes your fixture. Parse @message explicitly with jsonParse and use dot access to read the three keys. CloudWatch Logs Insights QL functions

fields jsonParse(@message) as fixture
| filter fixture.attempt_id = "fixture-01"
| sort @timestamp desc
| display @timestamp, fixture.attempt_id, fixture.outcome, fixture.elapsed_ms
| limit 10

Expect one row for fixture-01 with outcome completed and duration 380 ms. If the row is absent, run fields @timestamp, @message | filter strcontains(@message, "fixture-01") = 1 for the same group and time window. A matching raw message confirms delivery. Check that its entire text is one JSON object with the expected keys and types. If the raw event is absent, check the logger’s destination and write result, the selected Region, and the query window. If two copies appear, inspect logger retries and fan-out before expanding the canary. Have the incident owner run the saved queries they need and check that alarms and forwarding continue to receive their events on Standard.

Once the fixture passes, send one chat completion with a short synthetic prompt and an output cap supported by your test model. Match its diagnostic event with its durable usage record by attempt ID. Start with CometAPI

Expand to a small cohort after the join succeeds. Compare the expected diagnostic event count with the new group’s results and reconcile the same cohort’s usage records. Keep the old group queryable through its approved retention period so incidents that cross the cutover can use both groups. Restore the previous writer destination if a required consumer fails. When AWS billing data is available, compare billed ingestion for each class and query scan GB over equivalent workload windows. Record any duplicate writes or traffic changes so you can explain the difference from the forecast.

Sources checked

The AWS references cover the current log-class behavior, regional billing meters, and the documented read-value change beginning in December 2026. The CometAPI reference covers the response fields used for accounting and the output cap for the live check.