I'm looking for effective methods to aggregate log lines from a Kubernetes container and send them to external storage in a batch format, rather than one line at a time. Is using Fluent-bit a good option for this?
5 Answers
Promtail to an S3 backed Loki setup is a pretty solid approach for log aggregation!
There are a few tools that can help with this, like Promtail and Fluent-bit. I recommend using Fluent-bit in a daemonset configuration since it usually works better than running it as a sidecar. I mostly use daemonsets, and I've only set up sidecars for a couple of specific cases. Make sure your application logs are output through stdout and stderr; that way, the daemonset takes care of the rest.
I recently set up a similar tech stack and found that using Grafana + Loki + Fluent-bit is super simple and effective. It works well for aggregating logs!
We use Fluent-bit as a sidecar in our pods to aggregate logs. That's been working great alongside Splunk for us!
Alloy and Loki work nicely for us. We filter specific labels we want to log, and it does the job.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures