Posted in 2025

groupby + attrgetter: The Pythonic Way to Group Objects

Blog Post Publish Date: 2025/07/28

This blog post shows how to group objects by several attributes. It uses two standard library tools, itertools.groupby and operator.attrgetter, instead of building a dictionary of lists by hand. It also covers the one detail that trips most people up: groupby only groups items that are next to each other.

Read more ...


Kubernetes Logs Simplified: Everything You Need to Know About Pod Logging

Blog Post Publish Date: 2025/06/22

This blog post explains where Kubernetes stores container logs and how $ kubectl logs and log shippers read them. It also covers the CRI log line format, how log rotation works, and how to ship pod logs to an external system with a DaemonSet. Kubernetes logging can look complex, but knowing these details makes troubleshooting much easier.

Read more ...


Fluent Bit: Generating Log IDs with SHA-256 Hashes for Log Deduplication

Blog Post Publish Date: 2025/06/19

This blog post explains why Fluent Bit can deliver the same log more than once, and why deduplication needs a unique ID derived from the log content. It then shows how to generate a SHA-256 hash of each log line with only native Fluent Bit features, without external scripts or plugins.

Read more ...


Helm Charts: Development Practices from a Programmer's Perspective

Blog Post Publish Date: 2025/02/25

This blog post applies programming principles to Helm chart development. It covers when Helm's complexity pays for itself, how it removes duplicated manifests (DRY), why over-templating hurts (YAGNI), and how library charts keep patterns reusable.

Read more ...


Logstash DB Enrichment: Tips and Traps

Blog Post Publish Date: 2025/02/16

This blog post covers the lessons from enriching logs in Logstash with data from a PostgreSQL database. It explains hidden behaviors of the jdbc_streaming filter that can stop log ingestion, and the JDBC connection string parameters that prevent them. These problems are hard to reproduce and not clearly documented, so I hope these tips save you hours of troubleshooting and forum searching.

Read more ...


OpenSearch Concepts: Index and Shards

Blog Post Publish Date: 2025/01/05

This blog post explains two of the most basic concepts in OpenSearch administration: indices and shards. It covers what primary and replica shards are, how their counts affect performance and fault tolerance, and the API calls I use most to inspect indices and shards while troubleshooting.

Read more ...