JSON-Log Parsing With stern and jq

In many projects we use JSON as log format since it inheritly bears structure and thus is easy to process by log-aggregators (i.e. AWS CloudWatch autom. discovers fields from json just like fluentd). ...

May 7, 2020 · 2 min · schoeffm

jq by example

Inspired by a nice tutorial on Baeldung I’ve decided to write done some usual suspects when working with jq. Hence, this is more like a cheatsheet than a regular post. ...

January 29, 2020 · 3 min · schoeffm

Network Debugging of Containerized Java Apps

The other day, I had the need to look closer into the network communication of a (dockerized) JEE application. My usual tcpdump approach wasn’t applicable though because the traffic was TLS-encrypted.Finally, I ended up with a setup where the app used a man-in-the-middle proxy for all its communication - that proxy transparently re-encrypted the traffic which gave me the chance to inspect every single message exchanged. ...

September 19, 2019 · 3 min · schoeffm

Tcpdump Common Commands

When debugging network related issues the CLI tool tcpdump is a valuable assistant. I usually use a variation of this base command: sudo tcpdump -A -i lo0 -n -s0 -v port 8080...

July 30, 2019 · 2 min · schoeffm

Easy en-/decoding using base64

When dealing with Kubernetes secrets or when testing REST-services using i.e. curl it’s nice to have a fast’n’easy way of de- and encoding characters using base64. ...

July 13, 2019 · 1 min · schoeffm

SSH Config Format

Dealing with SSH-connections can become cumbersome quickly especially when configurations change frequently, too. Luckily, you can pre-configure most of a connections settings in a user specific config-file located in your ~/.ssh-folder called config. ...

June 24, 2019 · 2 min · schoeffm