Fluentd record_transformer Example
An example of using the fluentd record_transformer filter.
An example of using the fluentd record_transformer filter.
When deploying the logging aggregation tool Fluentd to our Kubernetes cluster, Fluentd was failing to start up. It was failing with a permission denied error when trying to create the directory /var/log/fluent. I had Fluentd configured to write its position files in the /var/log/fluent directory. /var/log was mounted as a hostDir, from (predictably) /var/log on the host node, in order to … Read more
If you need to get log events from fluentd up to a Splunk HTTPEventCollector (HEC), I’ve found that you have two options, splunk-http-eventcollector and splunkhec. Both of these plugins have fallen out of use in the last couple of years. When using either of these plugins, you lose the milliseconds in log event times. So what? We … Read more
I’ve spent a lot of time trying to get our logging to behave sensibly with all the microservices we have running in Kubernetes. Some of our apps log in JSON, some log with positional parameters, some log with a key=value, some use a mixed format, where part of the message is positional, and the rest … Read more
The Requirements Our requirements are simple. We run microservices in Docker, using Kubernetes as our deployment platform. We want all of our logs in Splunk. So the requirements are simply to take the logs from our microservice containers, and the logs from Kubernetes itself, and the logs from the host OS, and ship them to … Read more