The PetAdoptions EKS Logs are collected by the fluentd daemonset running in the EKS nodes. The CloudWatch log groups that we will be interacting with today were automatically created by Container Insights when it was configured. They are appear in the console with the following syntax:
Logs, click on
Filter log groupssearch bar, type in
This will take you to a page that shows you the different log streams within the log group.
You should see performance logs originating from the node.
CloudWatchMetrics (case sensitive) into the
Filter events search box.
Click on an arrow from the first column in the table to expand a log.
Along with the performance log data, you will also see that there are metrics present in Embedded Metric Format.
Visit the Embedded Metric Format (EMF) module if you would like to learn more about EMF.
Your screen should look similar to the screen shot below. From here you can view and analyze the metric log data.
CloudWatch Logs Insights supports a query language that you can use to perform queries on your log groups.
Visit the Logs Insights module for a deeper dive on this topic.
Logs, click on
select log group(s)search/drop down and type
fields @timestamp, @message | filter @message like 'puppy' | sort @timestamp desc | limit 200
Running the query above returns log data that contains the string
puppyin the log message.
This concludes this section. You may continue on to the next section.