This guide is part of the Azure Spring Cloud training
Configure aggregation of Spring Boot applications logs to understand common issues.
There are actually three ways to access your application's logs: Azure Storage, Azure Events Hub, and Log Analytics. We will focus here on Log Analytics as it's the most common one, and as it's integrated into Azure Spring Cloud.
Log Analytics is part of Azure Monitor, which is well-integrated into Azure Spring Cloud and which we will also use for metrics monitoring.
Having completed the setup in Section 00, you should have a Log Analytics workspace named sclab-la-<unique string>
in your resource group for this workshop. We must now configure our Azure Spring Cloud instance to send its data to this workspace.
- Go to the "Overview" page of your Azure Spring Cloud instance and select "Diagnostic settings" in the "Monitoring" section of the navigation pane.
- Click on "Add diagnostic setting" and configure your instance to send all its logs to the Log analytics workspace that we just created.
- Fill in the values as shown here and click "Save".
⬅️ Previous guide: 02 - Build a simple Spring Boot microservice
➡️ Next guide: 04 - Configure a Spring Cloud Config server