CloudWatch Log Insights
In this topic, we will take a look at Log Insights. If you have massive lines of logs, it is not easy to search and find the respective log that you are searching for. For this use case, Log Insights comes into play. CloudWatch Log Insights allows you to search logs with the filtering feature. Let’s see how Log Insights helps us to search logs:
- Click Log Insights under the Logs dropdown in the left pane:
Figure 7.12 – Log Insights
- Select the log that you want to investigate. In the previous example, we ran the TestLogs Lambda function, and I am also selecting that one here:
Figure 7.13 – The Log Insights window
- Once you select it, you can see the default query:
Figure 7.14 – The Log Insights filter
- Click the Run query button in order to see the result. In this filter,
fields
represents the columns that will...