From the course: Microservices: Design Patterns
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Log aggregation patterns
From the course: Microservices: Design Patterns
Log aggregation patterns
- Now we're going to dive into our final set of patterns, which are operational patterns. Now, these are unique in that they're more about how to run your system than how to build your system, but these are tried and true methods. The first one that we're going to talk about is log aggregation. So I'll dive into this pattern by first talking about the source of that data, and that is the log messages themselves. The problem that we are trying to solve is that operationally, we need to know what is going on with our systems. When errors occur, we need a way to quickly diagnose and resolve the errors, and logs are one of the single best places to look. Logs are invaluable if done right. Logs provide detailed information of the runtime behavior of your microservice artifact. Through other operational patterns that we'll talk about, Logs can be written and linked to other system logs as well. As such, logging must be consistent across all services. As we start doing log aggregation and…