# KodeKloud: Courses Grafana Loki ## Grafana Loki ### Course Introduction - [Course: Grafana Loki](https://notes.kodekloud.com/docs/Grafana-Loki/index.md): Hands-on course teaching Grafana Loki logging pipeline deployment and querying locally and on Kubernetes with Helm, Grafana Alloy, collectors, and log processing for troubleshooting - [Course Introduction](https://notes.kodekloud.com/docs/Grafana-Loki/Course-Introduction/Course-Introduction/page.md): Hands-on course teaching Grafana Loki logging pipeline deployment and querying locally and on Kubernetes with Helm, Grafana Alloy, collectors, and log processing for troubleshooting ### Grafana Loki Essentials - [What Is Loki](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-Essentials/What-Is-Loki/page.md): Explains Loki, a label based log aggregation system that indexes metadata instead of full text to reduce storage costs and integrate with Prometheus and Grafana. - [Architecture of Loki](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-Essentials/Architecture-of-Loki/page.md): Explains Grafana Loki architecture and workflow collecting labeling storing and querying logs using lightweight agents, labeled indexes, compressed chunks, object storage, and LogQL - [Loki Installation](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-Essentials/Loki-Installation/page.md): Guide to installing and configuring a local Grafana Loki server for development, including minimal configuration, startup steps, and best practice notes for production. - [Demo Loki Installation](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-Essentials/Demo-Loki-Installation/page.md): Guide to manually install Loki on Ubuntu, configure Grafana as a Loki datasource, and use Promtail to collect and forward logs between nodes. - [Installing the Grafana Alloy Agent](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-Essentials/Installing-the-Grafana-Alloy-Agent/page.md): Guide to installing and configuring Grafana Alloy agents to discover, tail, batch, and ship host logs to Loki as the supported replacement for Promtail - [Demo Installing the Grafana Alloy Agent](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-Essentials/Demo-Installing-the-Grafana-Alloy-Agent/page.md): Guide to install and configure Grafana Alloy on a node to tail local log files and forward them to a Loki instance for viewing in Grafana - [Collecting Application Logs](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-Essentials/Collecting-Application-Logs/page.md): Configuring Alloy to watch and tail application log files and forward them to Grafana Loki for unified log collection and visualization - [Demo Collecting Application Logs](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-Essentials/Demo-Collecting-Application-Logs/page.md): Guide to configuring Alloy to scrape a file-based application log and forward it to Grafana Loki, including LogQL queries, configuration changes, restart, and verification. ### Grafana Loki on Kubernetes - [Loki in Kubernetes](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-on-Kubernetes/Loki-in-Kubernetes/page.md): How to deploy Loki, Grafana Alloy as a DaemonSet, and Grafana via Helm to collect, index, and visualize Kubernetes pod logs. - [Deploying Loki in Kubernetes](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-on-Kubernetes/Deploying-Loki-in-Kubernetes/page.md): Guide to deploying Loki on Kubernetes with Helm charts, selecting deployment modes, configuring durable storage and values.yaml, and installing Grafana and log shippers - [Demo Deploying Loki in Kubernetes](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-on-Kubernetes/Demo-Deploying-Loki-in-Kubernetes/page.md): Deploying Grafana, Loki, and Alloy on Kubernetes to collect, store, and visualize pod logs using SeaweedFS S3 compatible storage - [Deploying and Viewing Application Logs](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-on-Kubernetes/Deploying-and-Viewing-Application-Logs/page.md): Explains using a DaemonSet Fluent Bit agent to automatically collect and enrich Kubernetes pod logs cluster-wide without per-application configuration. - [Demo Deploying and Viewing Application Logs](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-on-Kubernetes/Demo-Deploying-and-Viewing-Application-Logs/page.md): Deploy a small Kubernetes app that emits JSON logs to stdout and verify collection and viewing in Grafana Loki using kubectl and LogQL - [Demo Querying Logs With LogQL](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-on-Kubernetes/Demo-Querying-Logs-With-LogQL/page.md): How to filter and query application logs using LogQL, covering label selectors, text and regex filters, JSON parsing, and efficient query patterns for Grafana Loki. - [Processing Logs With Alloy Pipelines](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-on-Kubernetes/Processing-Logs-With-Alloy-Pipelines/page.md): Explains using Alloy Loki pipelines to extract structured fields from logs, promote low cardinality values to labels for efficient querying, and avoid indexing high-cardinality fields. - [Conclusion](https://notes.kodekloud.com/docs/Grafana-Loki/Grafana-Loki-on-Kubernetes/Conclusion/page.md): Building a cost efficient Kubernetes logging stack with Grafana Loki and Alloy that indexes few labels, uses object storage for compressed logs, and enables fast LogQL querying.