-
Notifications
You must be signed in to change notification settings - Fork 2
Checking DIBBS App Logs
Alis Akers edited this page Oct 16, 2024
·
2 revisions
- AWS CLI installed and configured with appropriate permissions.
- Access to the AWS Management Console.
-
Log in to AWS Management Console:
- Open your web browser and navigate to AWS Management Console.
- Enter your credentials to log in.
-
Navigate to CloudWatch:
- In the AWS Management Console, type "CloudWatch" in the search bar and select "CloudWatch" from the results.
-
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.
-
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.
-
List Log Groups:
- Open your terminal.
- Run the following command to list all log groups:
aws logs describe-log-groups
-
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>
- Run the following command, replacing
-
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>
- Run the following command, replacing
-
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
- 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.