Amazon CloudWatch Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
==Create a Log Group with AWS CLI==
==Create a Log Group with AWS CLI==


  awslogs-group
  aws logs create-log-group


==Create a Log Group with Amazon Console==
==Create a Log Group with Amazon Console==

Revision as of 05:42, 8 April 2019

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

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

View Logs

CloudWatch -> Log Groups -> <log-group-name> -> <log-stream-name>