Тёмный

How to configure Fluentbit to collect Logs for our K8S cluster ? 

Is it Observable
Подписаться 9 тыс.
Просмотров 36 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@KaleLazic
@KaleLazic 10 месяцев назад
Thank you! I just tested the fluentbit on K8s integration with Dynatrace and your video helped a lot!
@pardhunani143
@pardhunani143 3 года назад
Nice video ! Looking farward to learn from you more
@emmaasoh9149
@emmaasoh9149 7 месяцев назад
Hi! Great video! I would love a tutorial on shipping logs to click house and visualizing on grafana
@LindaPhan-n8n
@LindaPhan-n8n Год назад
Thank you for the video!
@isitobservable
@isitobservable Год назад
My pleasure!
@sanjais5766
@sanjais5766 10 месяцев назад
Nice Very informative😁
@laerciotardochi
@laerciotardochi 2 года назад
Thanks bro you show me the path, :)
@isitobservable
@isitobservable 2 года назад
Happy to help
@mehransaeed7207
@mehransaeed7207 3 месяца назад
Thanks for your video. I have spun the fluenbit pods in one of namespaces but getting this error. I have double checked var/log/containers folder have read permissions. I ran these pods and deployment files as root user. below is the error. [2024/07/01 12:32:44] [error] [input:tail:tail.0] read error, check permissions: /var/log/containers/*.log
@isitobservable
@isitobservable 2 месяца назад
Hi , Yes this has changed since the usage of containerd . The path to logs on the node is /var/log/pod
@AlirezaAry
@AlirezaAry 9 месяцев назад
Hi there, thank you for your video and the GitHub repo, currently im using these k8s filter. But i wonder how can we parse multi lines logs that our microservices generating in k8s? I check the official documents and try multiline parsers in input section or custom parsers in filter sections, but still i see some of my logs are spilited in one line! Our microservices usually are spring boot and they have stack traces in their console logs
@bex.doctor
@bex.doctor Год назад
Can you make a video tutorial on fluentbit sending data on elasticsearch? TIA
@isitobservable
@isitobservable Год назад
Hi, i will try to create a video on OpenSearch...i will try to answer to your question.
@tiefkluehlfeuer
@tiefkluehlfeuer 3 года назад
Why is the config format different to Fluentd? It is even from the same developers, and on a first glance describing similar things. That makes it hard to port from FluentBit to Fluentd, when things get larger and you need a plugin that FluentD has but FluentBit has not.
@isitobservable
@isitobservable 3 года назад
Hi, I will try to build another episode on Fluentbit with one of the contributors to answer that question. Otherwise, if you are already using Fluentd , you can still utilize FluentBit and Fluentd together. Fluentbit has a Fluentd exporter.
@BernardoGarcia19
@BernardoGarcia19 3 года назад
That is a nice observation, for instance, fluentbit has an output plugin to loki as we watch here as well, but fluent d does not send logs to loki. So If I want to use loki as a logging backend system, do I have to choose just between fluentbit or promtail as a collectors? It seems fluentd cannot transport to loki ... How can I deal with this if I am collecting logs using fluentd in order to transform them in a unified format and then I want to visualize them in loki? I heard we can use fluentbit as a collector and fluentd as a transformer or aggregator, so they can work together, but then the order FluentBit --- FluentD --- Loki cannot be used since FluentD does not send logs to Loki. Is possible to use first FluentD --- FluentBit --- Loki? I would say that will not be possible because FluentD does not have output to FluentBit ...
@isitobservable
@isitobservable 3 года назад
Hi Bernardo, if you are already have a log stream pipeline with Fluentd , the you could use it and then use the output plugin Forward to send it to FluentBit ( with the loki output plugin installed) to forward your logs to Loki. The best is to convert your fluentd pipeline into a fluentbit.
@BernardoGarcia19
@BernardoGarcia19 3 года назад
I also detailed in your explanation here, with the filters plugins like nest or record_modifier we can re-format the logs we collect with fluentbit, so then if I want to use fluentd to get an uniform format, I can also pursue that by fluent bit filters, so in this case I wouldn't need fluentd and then I can send to loki directly from fluentbit. Am I right? But then, in which situations will be good to use fluentbit and fluentd together if I can enrich, parse and filter with both? Sometimes their functionalities overlap each other.
@isitobservable
@isitobservable 3 года назад
Fluentbit is designed for Kubernetes. so if you have your pipeline in fluentbit format then you won't need fluentd. the value of fluentd is the large number of plugins. So if fluentbit has a missing plugin , you can imagine to chain fluentbit and fluentd to take advantage of the plugins.
@vrajbhatt8540
@vrajbhatt8540 Месяц назад
how to collect cronjob logs? Fluentbit is not able to forward cronjob's pod's logs on opensearch
@isitobservable
@isitobservable Месяц назад
If jobs with titles is sending them logs to stdout , then you should have your logs . Otherwise you will have to mount a pvc to your job and to the fluentbit agent
@kryptdervel
@kryptdervel 2 года назад
I think that you should mention that other videos are a prerequisite to understanding the tutorial of this video. I felt like I wasted quite a bit of time only to realize that in the tutorial section you keep on mentioning what you did the last time.
@isitobservable
@isitobservable 2 года назад
Hi Rehan, I'm sorry. I'm also trying to promote the other videos..but each tutorial is covering the topic of the episode. To reduce the duration of the tutorial, i explain quickly the first step of the tutorial : create a c Cluster, deploy Prometheus,deploy the demo APP...and then spend more time on the main topic of the episode. Maybe i was a bit unclear while explaining the tutorial. Sorry to be unclear.
@kryptdervel
@kryptdervel 2 года назад
@@isitobservable No worries. I understand that. It's pretty hard to structure videos on these topics. It would be nice and maybe easier if you could put the links to those videos in the description so if someone needs to look them up, they can find them here directly.
@isitobservable
@isitobservable 2 года назад
@@kryptdervel Thanks for the feedback.
@COD_zone_97
@COD_zone_97 2 года назад
can You make a video on how to send logs to a file in local environment after processing them?
@isitobservable
@isitobservable 2 года назад
Thanks for the feedback. I will add this topic in my backlog.
@gansgimmler3684
@gansgimmler3684 Год назад
Danke
@ashishjohn9708
@ashishjohn9708 Год назад
Hello, What if application generate custom log in custom path inside pod, then how to configure fluent bit configuration? Thanks
@isitobservable
@isitobservable Год назад
Hi, so if your application is writing in a custom folder then you need to make sure that the folder is mounted to a volume of the node ( or pvc) . The objective is to make sure that another pod ( in our case fluentbit) would be able to access this filesystem. Then to collect this log you will need to mount this volume in fluentbit , and add a second tail input plugin to read the file from this folder.
@ashishjohn9708
@ashishjohn9708 Год назад
@@isitobservable thanks for the reply i tried this approach but no luck somehow its not reading the logs
@ashishjohn9708
@ashishjohn9708 11 месяцев назад
@@isitobservable Thanks man for suggestion! Its working fine
@rakeshsm2168
@rakeshsm2168 2 года назад
Can you make vdo on how to send logs on aws cloudwatch using fluent bit.
@isitobservable
@isitobservable 2 года назад
Hi Rakesh sure it's great idea. Let me add this topic in my backlog. Thanks
@theindianwomenpioneer
@theindianwomenpioneer 2 года назад
Hi, does Fluentbit read/get only stdout logs from the Kubernetes container? or can it read logs from the volume mount folder as well?
@isitobservable
@isitobservable 2 года назад
Hi, The tail plugin is can read any files. but keep in mind the fluentbit agent is running on the node. it means that you will need to specify the right path to reach container file or volume .
@AftabAlam-dd7nn
@AftabAlam-dd7nn Год назад
Can you please provide more details about fluentbit_ds.yaml you deployed at 25:34?
@PathlavathNaik
@PathlavathNaik Год назад
yeah I got also stuck here. what will be there in that file. Previous Deleted config or any modifications has done to it and re applied the ds file
Далее
How to collect logs with Fluentd
45:02
Просмотров 15 тыс.
Fluent Bit explained | Fluent Bit vs Fluentd
9:58
Просмотров 78 тыс.
Лиса🦊 УЖЕ НА ВСЕХ ПЛОЩАДКАХ!
00:24
Fluentd on Kubernetes: Log collection explained
27:54
How to collect logs in k8s with Loki and Promtail
28:46
Introduction to fluentbit
9:56
Просмотров 23 тыс.
Understanding Logging: Containers & Microservices
8:51