Home / Companies / Grafana Labs / Blog / Post Details
Content Deep Dive

All things logs: best practices for logging and Grafana Loki

Blog post from Grafana Labs

Post Details
Company
Date Published
Author
Lauren Johnson
Word Count
1,894
Company Posts That Month
21
Language
English
Hacker News Points
-
Post removed?
No
Summary

In the podcast episode "All Things Logs," Ed Welch, Grafana Loki tech lead, and Mat Ryer discuss best practices for logging, emphasizing the importance of context in log lines to aid in troubleshooting and future accessibility. They highlight the significance of structured logging, which involves logging in machine-readable formats like JSON, and advocate for the inclusion of unique identifiers such as traceId or orderId to enhance log utility. The conversation also covers the challenges of logging at scale, suggesting Grafana Loki as a solution due to its efficient handling of log indexing through small key-value pairs, which helps manage resource costs while maintaining searchability. They stress the importance of choosing appropriate labels in Loki to avoid excessive index sizes and ensure logs are easy to locate, with examples like environment, cluster, and application being particularly useful.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Kubernetes 1 1,580 181 69 +20%
Observability 1 954 176 57 +31%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.