Application logs are written to an Amazon Elasticsearch cluster. You can only see application logs after you have created your demo resources.
To see the logs:
-
Retrieve your Elasticsearch username and password from Secrets Manager:
aws secretsmanager get-secret-value --secret-id elasticsearch/user aws secretsmanager get-secret-value --secret-id elasticsearch/password
-
Get the URL to your logging cluster:
$ terraform output kibana_endpoint "search-weco-storage-prototype-abcdefghijklmnopqrstuvwxyz.eu-west-1.es.amazonaws.com/_plugin/kibana/"
-
Take the URL from step 2, prepend
https://
and addapp/management/kibana/indexPatterns
, e.g.https://search-weco-storage-prototype-abcdefghijklmnopqrstuvwxyz.eu-west-1.es.amazonaws.com/_plugin/kibana/app/management/kibana/indexPatterns
Open this URL, using the username and password from step 1.
-
This takes you to the index patterns in Kibana.
If there is already a
firelens-*
index pattern configured, skip to step 7.If there are no index patterns yet, click the blue button "Click index pattern".
-
Type
firelens-*
as the name of your index pattern, then click "Next step". -
Select
@timestamp
as the time field for your index pattern, then click "Create index pattern". -
Click the hamburger menu (three horizontal lines) in the top left-hand corner, and select the Discover view. This allows you to browse your application logs.