Dataset
Amazon CloudWatch log, metric and alarm datasets for AI training
An Amazon CloudWatch dataset is an export from a company's AWS accounts of the log events in chosen log groups and log streams, the metric datapoints in chosen namespaces with their dimensions, alarm definitions with their alarm history items, and the dashboards, metric filters and saved Logs Insights queries defined on them. SourceX sources it to a buyer's spec from established businesses that run workloads on AWS. Each dataset is de-identified, with payloads, credentials, account IDs and resource ARNs scrubbed or replaced, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Log events by log group and stream, metric datapoints by namespace and dimension, and the alarms, dashboards and filters defined on them
- Typical systems
- Amazon CloudWatch Logs, metrics, alarms, dashboards and Logs Insights in one or more AWS accounts and Regions, with metric streams and subscriptions where set up
- Typical history
- Specified by the buyer; bounded by each log group's retention, the rollup of metrics with age and short-lived alarm history
- Modality
- Free-text and JSON log lines; numeric time series; JSON alarm and dashboard definitions
- Delivery formats
- Agreed per order; gzip JSONL log events per log group, datapoints as Parquet or JSONL, definitions and alarm history as JSON
- Preparation
- Payloads, tokens and personal data scrubbed from messages; account IDs, ARNs and resource names replaced with consistent keys
- Licensing
- Rights reviewed per company; permitted use set in the license
- Availability
- Sourced to your spec from companies that agree; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| log_group | string | The log group name, such as /aws/lambda/ followed by a function name, with resource names replaced by keys. |
| log_group_settings | object | The log group's retention setting and log class, with the metric filters and subscription filters defined on it. |
| log_events | array | The log events of the delivered window, each carrying the five fields below. |
| log_stream | string | The log stream a log event was written to; for Lambda, one stream per execution environment. |
| timestamp | integer | The log event's own timestamp in epoch milliseconds, as the writer supplied it. |
| ingestion_time | integer | When CloudWatch Logs received the log event, the value Logs Insights shows as @ingestionTime. |
| message | string | The raw log event message as the application or AWS service wrote it, after scrubbing. |
| parsed | object | Fields read from the message where it is JSON or a known AWS line, such as the duration and memory figures of a Lambda REPORT line. |
| metric | object | The namespace, metric name and dimension name and value pairs that together identify one metric. |
| datapoints | array | The metric's datapoints: timestamp, period in seconds, the statistics returned (Sum, Average, Minimum, Maximum, SampleCount) and unit. |
| alarm | object | The alarm's definition: metric or expression, statistic, period, evaluation periods, threshold, comparison operator, missing-data treatment and actions. |
| alarm_history | array | The alarm's history items: timestamp, item type (state update, configuration update or action), summary text and the JSON history data. |
| dashboards | array | Dashboard bodies as JSON: each widget with the metrics it plots or the Logs Insights query it runs. |
| saved_queries | array | Logs Insights query definitions saved in the account: name, query string and the log groups they target. |
Field names from the table above; values are masked placeholders.
Example record
{
"alarm": {
"alarm_name": "orders-api-errors-high",
"statistic": "Sum",
"period": 60,
"evaluation_periods": 3,
"datapoints_to_alarm": 2,
"threshold": 5,
"comparison_operator": "GreaterThanThreshold"
},
"alarm_history": [
{
"timestamp": "2024-05-14T09:22:41.118Z",
"history_item_type": "StateUpdate",
"history_summary": "Alarm updated from OK to ALARM",
"history_data": {
"oldState": {
"stateValue": "OK"
},
"newState": {
"stateValue": "ALARM",
"stateReason": "Threshold Crossed: 2 out of the last 3 datapoints [7.0, 9.0] were greater than the threshold (5.0)."
}
}
}
],
"metric": {
"namespace": "AWS/Lambda",
"metric_name": "Errors",
"dimensions": {
"FunctionName": "fn_orders_api"
}
},
"datapoints": [
{
"timestamp": "2024-05-14T09:20:00Z",
"period": 60,
"sum": 9
},
{
"timestamp": "2024-05-14T09:21:00Z",
"period": 60,
"sum": 7
}
],
"log_group": "/aws/lambda/fn_orders_api",
"log_group_settings": {
"retention_in_days": 90,
"log_class": "STANDARD",
"metric_filters": [],
"subscription_filters": [
"sub_archive_01"
]
},
"log_events": [
{
"log_stream": "2024/05/14/[$LATEST]7c1e0a52b9d44f0e8a3b6d2f91c4e7aa",
"timestamp": 1715678484207,
"ingestion_time": 1715678484951,
"message": "{\"level\":\"ERROR\",\"msg\":\"upstream timeout\",\"order_ref\":\"[ORDER_ID]\",\"elapsed_ms\":3001}",
"parsed": {
"level": "ERROR",
"msg": "upstream timeout",
"elapsed_ms": 3001
}
},
{
"log_stream": "2024/05/14/[$LATEST]7c1e0a52b9d44f0e8a3b6d2f91c4e7aa",
"timestamp": 1715678484210,
"ingestion_time": 1715678484951,
"message": "REPORT RequestId: 5b2f8a10-3c4d-4e6f-9a7b-2d1c0e9f8a76 Duration: 3004.12 ms Billed Duration: 3005 ms Memory Size: 512 MB Max Memory Used: 141 MB",
"parsed": {
"duration_ms": 3004.12,
"max_memory_used_mb": 141
}
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train agents to investigate an alarm
A state change with its datapoints and the log events around it is one worked case from alarm to cause.
Learn structure from unstructured logs
Log groups in many formats are realistic material for parsing and template extraction.
Tune alarm thresholds
Definitions with their state change history show which alarms flapped and which thresholds were later edited.
Generate Logs Insights queries
Saved queries and dashboard widgets pair a query string with the log groups it was written for.
Evaluate serverless diagnosis
REPORT lines give duration, billed duration and memory per invocation, and init duration on a cold start, as known answers.
Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Aligned windows
Logs, one-minute datapoints and alarm history cover the same hours.
Structured messages
Most log groups write JSON with stable keys and a request ID.
Consistent replaced keys
One key per function, account and resource across group names, dimensions and alarms.
Fine-grained metrics
Datapoints are at the period originally published, not a later rollup.
Extended alarm history
State changes were archived beyond what CloudWatch itself retains.
Complete invocations
Lambda streams carry START, END and REPORT lines for each request.
Record timeline
Amazon CloudWatch dataset
One log group per resource, and no shared schema
CloudWatch Logs stores log events in log streams, and log streams in log groups. A log event is a timestamp and a message string, to which the service adds the time it received the event. Groups are usually created per resource by whatever writes to them. By default a Lambda function logs to a group named /aws/lambda/ plus the function name, with one stream for each execution environment, named by date, function version and an identifier. A busy function spreads one minute of traffic over many streams, and one stream holds many invocations in sequence, so a request is rebuilt by following its request ID across the group.
Structure is whatever each application printed. In its default text format Lambda adds START, END and REPORT lines for every invocation, with the request ID, duration, billed duration, memory size and maximum memory used. Everything between them is the team's own logging, JSON in one function and bare print statements in the next. Logs Insights discovers JSON keys and fields such as @requestId and @duration when a query runs, but those are not stored columns, and an export returns each event's raw message.
Nothing declares how logs, metrics and alarms relate. A metric is identified by its namespace, name and exact set of dimensions, and an alarm names one by those. The function name in a log group matches the FunctionName dimension in the AWS/Lambda namespace only by convention. Two explicit ties exist: a metric filter, which turns a pattern on a log group into a metric from the day it was created and not before, and embedded metric format lines, whose _aws block names the metrics generated from them. Coverage is broad but shallow: services report their own counts and latencies, and application behavior appears only where code logged or published it.
What age removes from logs, metrics and alarm history
Log groups keep events indefinitely unless someone set a retention period, so one account can hold years in one group and a week in the next. Log class matters as well: classes other than Standard support only part of the feature set, and AWS describes its Delivery class as keeping events in CloudWatch Logs for one day. Metrics are rolled up on a fixed schedule: datapoints with a period under 60 seconds are available for 3 hours, one-minute datapoints for 15 days, five-minute datapoints for 63 days and one-hour datapoints for 455 days. A two-minute error spike from last year survives only as part of an hourly aggregate, even if the log events around it are intact. Finer history exists only where the company archived it, for example through a metric stream.
Alarm history is the shortest. CloudWatch keeps history items for a matter of weeks, not years, so ask how far back the account's history goes. Each item has a type, a summary and a JSON data field. For a state change the data gives the old and new state and the reason, with recent datapoints and the threshold. An alarm holds only its current configuration, and a changed threshold shows up only as a configuration update item while history lasts. Longer alarm history exists only where state change events were routed through EventBridge into a log group or another store.
An export task copies one log group's events for a time range to Amazon S3, an account can run one such task at a time, recent events can take up to 12 hours to become exportable, and time order inside an exported file is not promised. Subscription filters deliver new events only, as gzip-compressed batches that carry the account ID, log group and log stream. To test a sample, pick one alarm state change and check that the one-minute datapoints, the history item and the log events for the same minutes are all present. Check that invocations have both START and REPORT lines, and search messages for tokens, payloads, account IDs and ARNs.
What to check before licensing
- Have the buyer's counsel and the data owner read the Amazon Web Services customer agreement and service terms on exported CloudWatch data and API use.
- Scan a sample of log messages for payloads, authorization headers, tokens, keys, email addresses and IP addresses, and ask how they were detected and scrubbed.
- Check how account IDs, resource ARNs, function names and hostnames were replaced, and that one key is used across log group names, metric dimensions and alarm definitions.
- Ask for each log group's retention setting and log class, and whether a data protection policy masked values at ingestion.
- Ask what period the metric datapoints were retrieved at, and whether older windows come from CloudWatch's rollups or from a metric stream archive.
- Ask how alarm history beyond CloudWatch's own retention was captured, and whether the threshold in force at each state change is known.
- Ask whether logs came from an export task, a subscription or API paging, then reconcile event counts per log group and check for gaps and duplicates.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What does an Amazon CloudWatch dataset contain?
It contains the telemetry one company's AWS accounts sent to CloudWatch. That is log events from chosen log groups, metric datapoints from chosen namespaces, alarm definitions with their history items, and the dashboards, metric filters and saved Logs Insights queries built on them. Scope it by service and time window.
How far back does CloudWatch data go?
It differs by record type. Log events are kept indefinitely unless a retention period was set on the log group. Metric datapoints are aggregated with age: one-minute data for 15 days, five-minute data for 63 days and one-hour data for 455 days. Alarm history lasts only weeks.
Do CloudWatch logs have a schema?
No. A log event is a timestamp and a message, and the message is whatever the application or AWS service wrote. Some groups hold JSON, some hold service formats such as Lambda's REPORT line, and many hold free text. Logs Insights finds fields at query time, but an export returns raw messages, so ask for a sample from every log group in scope.
Can logs, metrics and alarms be joined?
Yes, by name and time, not by a stored key. An alarm names its metric by namespace, name and dimensions, and a function's log group name matches its FunctionName dimension by convention. De-identification has to replace those names consistently or the joins break. Metric filters add an explicit link where used.
How are credentials and personal data in log lines handled?
They are scrubbed before delivery, and the buyer should verify it on a sample. Applications print request payloads, tokens and customer identifiers into logs by accident, and CloudWatch stores messages as written unless a data protection policy masked them at ingestion. No scrubbing method is perfect, so agree the patterns searched and review the residue.
Is SourceX affiliated with Amazon Web Services?
Amazon CloudWatch is named to identify the system the records come from. That does not imply a partnership with or endorsement by Amazon Web Services. The records belong to the business that runs Amazon CloudWatch, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Production logs and distributed traces
Logs, traces and metrics for incident and baseline windows, tied to the change that ended each incident
- On-call paging and alert histories
Alerts and pages with payload, routing, escalation, acknowledgement and resolution, plus rule versions
- Datadog monitoring and incident records
Monitor, dashboard, SLO and incident records from one Datadog organization, with the alert events and the logs, spans and metric windows behind them
- Prometheus metrics and Grafana dashboards
Scraped time series keyed by label sets, the rules written against them, and the Grafana dashboards, panel queries and annotations built on top
- Splunk log and event records
Raw indexed events with host, source and sourcetype, and the searches, extractions, lookups and notable events built on them
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.