New CloudWatch Log Group Event
Triggers a workflow on every new CloudWatch log group event created.
info
Automations based on this trigger will search for new events every 5 minutes.
Basic Parameters
Parameter | Description |
---|---|
AWS Region | Enter the desired AWS Region.If no Region is specified, and the requested service supports Regions, AWS routes the request to us-east-1 by default. |
Filter Pattern | The filter pattern to use. For more information, see Filter and Pattern Syntax (https:docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).If not provided, all the events are matched. |
Log Group Name | The name of the log group to search. |
Advanced Parameters
Parameter | Description |
---|---|
Log Stream Name Prefix | Filters the results to include only events from log streams that have names starting with this prefix.If you specify a value for both logStreamNamePrefix and logStreamNames, but the value for logStreamNamePrefix does not match any log stream names specified in logStreamNames, the action returns an InvalidParameterException error. |
Sample Event
{
"logStreamName": "example-log-steam-name",
"timestamp": 1660493254927,
"message": "{\"kind\":\"Event\",\"apiVersion\":\"test.k8s.io/v1\",\"level\":\"testLevel\",\"testID\":\"3a12a345-123-43df9-8a1b-766fd4cf6\",\"stage\":\"Complete\",\"requestURI\":\"/apis/test.k8s.io/v1/namespaces/system\",\"ver\":\"get\",\"name\":{\"testName\":\"system:my-name\",\"groups\":[\"system:group\"]},\"sourceIPs\":[\"000.00.00.00\"],\"userAName\":\"manager/v0.00.0 \",\"objectRef\":{\"resource\":\"test\",\"namespace\":\"my-system\",\"name\":\"my-manager\",\"apiGroup\":\"test.k8s.io\",\"apiVersion\":\"v1\"},\"Status\":{\"metadata\":{},\"code\":200},\"requestReceivedTimestamp\":\"2022-08-17T00:14:14.389397Z\",\"stageTimestamp\":\"2022-08-17T00:14:14.393839Z\",\"annotations\":{\"test.k8s.io/dec\":\"allow\",\"test.k8s.io/reason\":\"RBAC: allowed by me \\\"system:my-manager\\\" of myRole \\\"system:my-manager\\\" to User \\\"system:my-manager\\\"\"}}",
"ingestionTime": 1660695236220,
"eventId": "12347417325358844256789826328277953744193575226312720977"
}