Section 11: Lab: Sending Logs from ASP.NET Core with Serilog
- Structured logging with ILogger and Serilog.AspNetCore
- Elastic.Serilog.Sinks in place of the older sink, and the ECS format
- Configure it safely in Program.cs and appsettings.json
- Add context such as the request ID and user with enrichers
- Lab: send the Web API's logs and request logs to Elasticsearch
Section 12: Data Streams, ILM and Index Care
- Data streams for time series data instead of daily indices
- Index Lifecycle Management: rollover and deleting old data
- Index Management in Kibana and checking cluster health
- Snapshot and restore basics
- Lab: keep logs for 30 days and delete them automatically
Section 13: Lab: Investigating Logs with Kibana Discover
- Create a data view and choose a time range
- Search with KQL and filters
- Use ES|QL in Discover to summarise data and find the cause of problems
- Save searches and share them with the team
- Lab: trace the cause of HTTP 500 errors in the Web API logs
Section 14: Dashboards, Alerts and OpenTelemetry
- Build charts with Lens: histograms, line charts, heat maps and pie charts
- Combine charts into an application monitoring dashboard
- Basic alerting rules for unusual increases in errors
- An overview of OpenTelemetry and EDOT .NET for traces and metrics
- Lab: a dashboard that tracks the health of the Web API
Section 15: Workshop: Search and Log Monitoring for a .NET Application
- Brief: an organisation's search system with complete logging
- Design the mapping, the search API and data synchronisation
- Ship logs into a data stream and build the team's dashboard
- Present the work and wrap up with a go-live checklist