CloudWatch can automatically discover fields from your log data.
Logs, click on
/aws/containerinsights/petsite/performancefrom the `Select log group(s) drop down.
Note: You can select more than one log group to query on.
You will see a list of fields that were discovered by CloudWatch automatically as shown below.
This allows you to pick and include the fields that you want to query on in the query area using intellisense.
Logs Insights also provides sample queries for you to easily get started with.
You will see a list of sample queries sorted into categories such as service or frequency of use. Select a query and click ‘Apply’ on the query you are interested in to use it.
You can save your queries into Logs Insights to access them later. Simply click the
Save button on the interface and provide a name to it to Save the query. You can also optionally provide a custom name for the folder.
Savebutton underneath the query editor.
Sample1for query name.
You should now have a query called
Sample1 listed under
Historybutton underneath the query editor.
Here you can see a history of all the queries you have executed. You will be able to see queries executed by the logged in user whether they are saved queries or not.
This concludes the Logs Insights module.