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.
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'
)
string
[REQUIRED]
The name or ARN of the log group to remove the syslog configuration from.
string
The ID of the VPC endpoint associated with the syslog configuration to delete.
None
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'
)
string
[REQUIRED]
The name or ARN of the log group to associate with the syslog configuration.
string
The ID of the VPC endpoint to use for syslog ingestion.
None
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
)
string
The name or ARN of the log group to filter syslog configurations for.
string
The ID of the VPC endpoint to filter syslog configurations for.
string
The token for the next set of items to return. You received this token from a previous call.
integer
The maximum number of syslog configurations to return in the response.
dict
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.