Looking at Logs with Grafana Loki
In this chapter, we will get hands-on experience with Grafana Loki. We will learn how to use LogQL, which is the language used for querying Loki, how to select and filter log streams, and how to use the operators and aggregations available. This will give you the tools to extract the data in appropriate ways for your dashboard visualizations and alerts. We will review the benefits and drawbacks of the log format and how it impacts your use of Loki. To fully explore the benefits of Loki, we will explore the architecture and where it can be scaled for performance. To finish, we will look at advanced areas of LogQL, such as labels and transformations, and other tips and tricks to expand your use of Loki.
We will cover the following main topics in this chapter:
- Introducing Loki
- Understanding LogQL
- Exploring Loki’s architecture
- Tips, tricks, and best practices