How To Log NestJS Applications in a Distributed System with Loki Stack — Part 2

Collecting Logs with fluentbit and showing them in Grafana

Itchimonji
CP Massive Programming

--

In one of my latest articles, I explained the importance of Centralized Logging. I demonstrated how you can realize custom logging in a NestJs application using winston and described the main role of fluentbit and Loki.

In this article I want to show you how you can collect custom and stdout logs, push them into a Loki database, and visualize them in Grafana.

Creating a Kubernetes Cluster for Local Use

To become more experienced with Kubernetes and improve our workflow, installing a local Kubernetes environment is key. For this, I use kind in most cases. Check out one of my articles to become familiar with kind.

--

--

Itchimonji
CP Massive Programming

Freelancer | Site Reliability Engineer (DevOps) / Kubernetes (CKAD) | Full Stack Software Engineer | https://patrick-eichler.com/links