This page provides a comprehensive reference for aws cloudwatch actions available in the workflow automation actions catalog. These actions enable you to cloudwatch logs operations.
Prerequisites
Before using AWS actions in workflow automation, ensure you have:
- An AWS account with appropriate permissions.
- AWS credentials configured (IAM user credentials, IAM role ARN, or session credentials).
- The necessary IAM permissions for the specific AWS services you plan to use.
See Set up AWS credentials for information on how to create IAM users and IAM roles, and set up static and session AWS credentials for integration with workflow automation AWS actions.
Retrieves a batch of log events from a specified log stream in AWS CloudWatch Logs. It's essential for monitoring, auditing, and troubleshooting applications by programmatically fetching log data.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
logStreamName | Required | String |
|
logGroupName | Optional | String |
|
logGroupIdentifier | Optional | String |
|
startTime | Optional | Int |
|
endTime | Optional | Int |
|
limit | Optional | Int |
|
startFromHead | Optional | Boolean |
|
unmask | Optional | Boolean |
|
nextToken | Optional | String |
|
Output Field | Type | Example |
|---|---|---|
response | Object | |
success | Boolean |
|
errorMessage | String |
|
name: get-lambda-logsdescription: 'Retrieve log events from an AWS Lambda function'workflowInputs: region: type: String defaultValue: us-east-2 logGroupName: type: String defaultValue: /aws/lambda/my-function logStreamName: type: String defaultValue: 2023/10/27/[$LATEST]abcdef123456steps: name: get_events_step type: action action: aws.cloudwatch.get_log_events version: '1' inputs: region: ${{ .workflowInputs.region }} logGroupName: ${{ .workflowInputs.logGroupName }} logStreamName: ${{ .workflowInputs.logStreamName }} limit: 100This uploads a batch of log events to the specified log stream in AWS CloudWatch Logs. It is used for programmatically sending log data from applications or services to CloudWatch for monitoring and analysis.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
logGroupName | Required | String |
|
logStreamName | Required | String |
|
logEvents | Required | List | |
entity | Optional | Dict |
|
Output Field | Type | Description | Example |
|---|---|---|---|
response | Object | The raw JSON response, which includes the | |
success | Boolean | Indicates whether the log events were successfully uploaded. |
|
errorMessage | String | A descriptive error message if the action failed. |
|
Workflow example |
|---|
|