Skip to main content

log_streams

Represents a log stream, which is a sequence of log events from a single emitter of logs.

Overview

Namelog_streams
TypeResource
DescriptionRepresents a log stream, which is a sequence of log events from a single emitter of logs.
Idaws.cloudwatch.log_streams

Fields

NameDatatypeDescription
log_stream_namestringThe name of the log stream.
creation_timeintegerThe creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
first_event_timestampintegerThe time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
last_event_timestampintegerThe time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. The lastEventTime value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.
last_ingestion_timeintegerThe ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC The lastIngestionTime value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.
upload_sequence_tokenstring

The sequence token.

The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted regardless of receiving an invalid sequence token. You don't need to obtain uploadSequenceToken to use a PutLogEvents action.

arnstringThe Amazon Resource Name (ARN) of the log stream.
stored_bytesinteger

The number of bytes stored.

Important: As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.

Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.
regionstringAWS region.

Methods

NameAccessible byRequired Params
DescribeLogGroupsSELECTregion
CreateLogGroupINSERTdata__logGroupName, data__logStreamName, region
DeleteLogGroupDELETEdata__logGroupName, data__logStreamName, region