Skip to content

Checking DIBBS App Logs

Alis Akers edited this page Oct 16, 2024 · 2 revisions

Play: Checking DIBBS App Logs

Video Instructions

AWS Dashboard

view-logs-ecs-cloudwatch


Written Instructions

Prerequisites

  • AWS CLI installed and configured with appropriate permissions.
  • Access to the AWS Management Console.

Steps

Using AWS Management Console
  1. Log in to AWS Management Console:

  2. Navigate to CloudWatch:

    • In the AWS Management Console, type "CloudWatch" in the search bar and select "CloudWatch" from the results.
  3. Access Log Groups:

    • In the CloudWatch dashboard, on the left-hand side, click on "Logs" to expand the menu.
    • Click on "Log groups" to view the list of log groups.
  4. View Log Streams:

    • Click on the log group you are interested in to view its log streams.
    • Click on a log stream to view the log events.
Using AWS CLI
  1. List Log Groups:

    • Open your terminal.
    • Run the following command to list all log groups:
      aws logs describe-log-groups
  2. List Log Streams for a Specific Log Group:

    • Run the following command, replacing <log-group-name> with the name of your log group:
      aws logs describe-log-streams --log-group-name <log-group-name>
  3. Get Log Events from a Specific Log Stream:

    • Run the following command, replacing <log-group-name> and <log-stream-name> with the appropriate names:
      aws logs get-log-events --log-group-name <log-group-name> --log-stream-name <log-stream-name>

Example Commands

  • List all log groups:

    aws logs describe-log-groups
  • List log streams for a log group named "my-log-group":

    aws logs describe-log-streams --log-group-name my-log-group
  • Get log events from a log stream named "my-log-stream" in the log group "my-log-group":

    aws logs get-log-events --log-group-name my-log-group --log-stream-name my-log-stream

Notes

  • Ensure your AWS CLI is configured with the correct region and credentials.
  • You may need additional permissions to view certain log groups and streams.

This runbook provides a step-by-step guide to check log groups in AWS CloudWatch using both the AWS Management Console and AWS CLI.