Amazon CloudWatch Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:
{{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html AWS::Logs::LogGroup]}}
{{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html AWS::Logs::LogGroup]}}


  Type: AWS::Logs::LogGroup
  Resources:
Properties:  
  MyServiceLogGroup:
  LogGroupName: ''log-group-name''
    Type: AWS::Logs::LogGroup
  RetentionInDays: ''number-of-days-as-integer''
    Properties:
      LogGroupName: ''log-group-name''
      RetentionInDays: ''number-of-days-as-integer''


=View Logs=
=View Logs=


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

Revision as of 00:35, 31 March 2019

External

Internal

Create a Log Group

Create a Log Group with AWS CLI

awslogs-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
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>