What’s the Best Way to Aggregate K8s Container Logs?

0
3
Asked By CuriousCat92 On

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

Answered By CloudWhisperer On

Promtail to an S3 backed Loki setup is a pretty solid approach for log aggregation!

Answered By TechGuru88 On

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.

Answered By LogMaster5000 On

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!

Answered By BusyBee42 On

We use Fluent-bit as a sidecar in our pods to aggregate logs. That's been working great alongside Splunk for us!

Answered By DataDude33 On

Alloy and Loki work nicely for us. We filter specific labels we want to log, and it does the job.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.