Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

How to Disable Logging for a Kubernetes Pod

Blog post from New Relic

Post Details
Company
Date Published
Author
Shu Jackson
Word Count
725
Company Posts That Month
30
Language
English
Hacker News Points
-
Post removed?
No
Summary

Log data is essential for troubleshooting in complex platforms like Kubernetes, and New Relic provides a Fluent Bit output plugin that can be deployed as a Helm chart to collect cluster log data. A customer inquired about disabling certain logs, such as NGINX access logs and Node.js logs, to optimize costs and avoid unnecessary data collection. Two strategies were discussed for managing which logs Fluent Bit should collect: editing the parser configuration or using Kubernetes annotations. The first strategy involves modifying the parser configuration, which centralizes changes but can complicate management if new pods or logs are needed. The second strategy, using Kubernetes annotations, offers more flexibility by allowing developers to control logging on a per-pod basis, requiring the enabling of the K8S-Logging.Exclude feature in Fluent Bit. The blog suggests that annotations provide a better solution by decentralizing log configuration, thus accommodating dynamic changes in a Kubernetes environment.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Kubernetes 15 1,068 109 38 +157%
Observability 2 257 75 21 +22%
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.