Amazon CloudWatch Logs

2026/06/22 - Amazon CloudWatch Logs - 3 new api methods

Changes  CloudWatch Logs Updates - New APIs introduced to support syslog ingestion to a log group. For more information, see CloudWatch Logs API documentation.

DeleteSyslogConfiguration (new) Link ¶

Deletes a syslog configuration for a log group. After deletion, syslog data is no longer ingested through the specified VPC endpoint.

See also: AWS API Documentation

Request Syntax

client.delete_syslog_configuration(
    logGroupIdentifier='string',
    vpcEndpointId='string'
)
type logGroupIdentifier:

string

param logGroupIdentifier:

[REQUIRED]

The name or ARN of the log group to remove the syslog configuration from.

type vpcEndpointId:

string

param vpcEndpointId:

The ID of the VPC endpoint associated with the syslog configuration to delete.

returns:

None

PutSyslogConfiguration (new) Link ¶

Creates or updates a syslog configuration for a log group. This enables ingestion of syslog data through the specified VPC endpoint into the log group.

See also: AWS API Documentation

Request Syntax

client.put_syslog_configuration(
    logGroupIdentifier='string',
    vpcEndpointId='string'
)
type logGroupIdentifier:

string

param logGroupIdentifier:

[REQUIRED]

The name or ARN of the log group to associate with the syslog configuration.

type vpcEndpointId:

string

param vpcEndpointId:

The ID of the VPC endpoint to use for syslog ingestion.

returns:

None

ListSyslogConfigurations (new) Link ¶

Returns a list of syslog configurations. You can optionally filter the results by log group or VPC endpoint.

See also: AWS API Documentation

Request Syntax

client.list_syslog_configurations(
    logGroupIdentifier='string',
    vpcEndpointId='string',
    nextToken='string',
    maxResults=123
)
type logGroupIdentifier:

string

param logGroupIdentifier:

The name or ARN of the log group to filter syslog configurations for.

type vpcEndpointId:

string

param vpcEndpointId:

The ID of the VPC endpoint to filter syslog configurations for.

type nextToken:

string

param nextToken:

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

type maxResults:

integer

param maxResults:

The maximum number of syslog configurations to return in the response.

rtype:

dict

returns:

Response Syntax

{
    'syslogConfigurations': [
        {
            'logGroupArn': 'string',
            'sourceType': 'VPCE',
            'vpcEndpointId': 'string',
            'createdAt': 123
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • syslogConfigurations (list) --

      The list of syslog configurations.

      • (dict) --

        Contains information about a syslog configuration associated with a log group.

        • logGroupArn (string) --

          The ARN of the log group associated with this syslog configuration.

        • sourceType (string) --

          The source type for the syslog configuration.

        • vpcEndpointId (string) --

          The ID of the VPC endpoint used for syslog ingestion.

        • createdAt (integer) --

          The time when the syslog configuration was created, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

    • nextToken (string) --

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