Amazon CloudWatch Operations
Jump to navigation
Jump to search
External
Internal
Create a Log Group
Create a Log Group with AWS CLI
aws logs create-log-group
Create a Log Group with Amazon Console
CloudWatch -> Logs -> Actions -> Create Log Group
Create a Log Group with CloudFormation
AWS::Logs::LogGroup
The CloudFormation declaration for a log group.
Resources: MyServiceLogGroup: Type: AWS::Logs::LogGroup Properties: LogGroupName: log-group-name RetentionInDays: number-of-days-as-integer
Delete a Log Group
aws logs delete-log-group <log-group-name>
aws logs delete-log-group API-Gateway-Execution-Logs_4jq63m67p8/v18
View Logs
CloudWatch -> Log Groups -> <log-group-name> -> <log-stream-name>