Summary
In this chapter, we have taken a look at Loki, exploring the log ingest format and the importance of log labels. We then started looking at the comprehensive features of LogQL, the query language of Loki, and how we can select log streams and then filter, parse, format, and transform log lines. These techniques will be invaluable when working with Loki to build dashboards in Chapter 8. Then, we looked at the Loki architecture to get an understanding of what’s going on behind the scenes. We also explained how our data is stored and how Loki can be scaled to increase performance. Lastly, we reviewed some tips and best practices that can help you improve your experience with Loki.
In the next chapter, we’ll move on from logs to explore metrics and Prometheus, where Loki took its original inspiration from.