v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1448206184.6 KB

Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered.

You can specify the log group to search by using either logGroupIdentifier or logGroupName. You must include one of these two parameters, but you can't include both.

This operation has a limit of five transactions per second, after which transactions are throttled.

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see CloudWatch cross-account observability.

post/#X-Amz-Target=Logs_20140328.DescribeLogStreams

Query parameters

limitstring

Pagination limit

nextTokenstring

Pagination token

Headers

X-Amz-Target'Logs_20140328.DescribeLogStreams' required

Request body

logGroupNamestring
<p>The name of the log group.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>
logGroupIdentifierstring
<p>Specify either the name or ARN of the log group to view. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.</p> <note> <p> You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both. </p> </note>
logStreamNamePrefixstring
<p>The prefix to match.</p> <p>If <code>orderBy</code> is <code>LastEventTime</code>, you cannot specify this parameter.</p>
orderBy'LogStreamName' | 'LastEventTime'
<p>If the value is <code>LogStreamName</code>, the results are ordered by log stream name. If the value is <code>LastEventTime</code>, the results are ordered by the event time. The default value is <code>LogStreamName</code>.</p> <p>If you order the results by event time, you cannot specify the <code>logStreamNamePrefix</code> parameter.</p> <p> <code>lastEventTimestamp</code> represents the time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. <code>lastEventTimestamp</code> updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.</p>
descendingboolean

If the value is true, results are returned in descending order. If the value is to false, results are returned in ascending order. The default value is false.

nextTokenstring

The token for the next set of items to return. (You received this token from a previous call.)

limitinteger

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

Response

Success

nextTokenstring

The token for the next set of items to return. The token expires after 24 hours.