In this section, we shall find details about the CloudWatch logs generated and display the log streams generated:
- Click on
Logs
in the CloudWatch Console, as shown in the following screenshot:
- In
Filter
, specify/ecs/mysql
or just/ecs
, which is the value of theawslogs-stream-prefix
option for theawslogs
log driver, as configured in the container definition in the Configuring logging section. The log group/ecs/mysql-task-definition
is displayed, as shown in the following screenshot:
- Click on the log group to display the log streams, as shown in the following screenshot:
The log events in the log stream get displayed. Each log event is associated with a timestamp and a log message. An example log message is Initializing database
, as shown in the following screenshot. Some of the messages have [
Warning]
associated with them:
A CloudWatch log message indicating the MySQL database is running and accepting connections is the message mysqld: ready for connections
, as...