Query CloudWatch Logs Insights histogram
Compute the full-window per-level histogram for the same scope/window/filter as the row query. Separate from the row endpoint so it can be cached on a longer cadence (it scans the whole window) and so rows aren’t blocked on the aggregation.
Body
Request body for the full-window histogram. Same scope + window + filter as the row query; no paging or row limit (the aggregation counts the whole window).
Inclusive end of the query window (ISO 8601)
Inclusive start of the query window (ISO 8601)
Environment whose module-instance ui.logs sources are queried. Optional when moduleInstanceIds/logSourceKeys name the sources.
Structured filter applied to the matched sources, the same as the row query. The returned histogram reflects the filtered volume.
Restrict to these individual ui.logs sources by composite <moduleInstanceId>::<logSourceId> key.
Restrict to these module instance ids (see the row request for semantics).
Bucket period in seconds. Omit to choose one automatically from the time window. Clamped to 1–86400.
Response
The request has succeeded.
Response payload for the full-window per-level histogram (a separate endpoint from rows so it can be cached longer and so rows render without waiting for the aggregation).
Contiguous per-level histogram buckets across the FULL query window. Computed by a count aggregation, so the counts reflect every matching event in the window and are never truncated by the row limit.
Log groups of the sources whose aggregation could not be queried (empty unless partial is true).
True when one or more sources' aggregation could not be queried, so those sources are omitted from the bar counts. Listed in missedSources.
The histogram bucket period in seconds