Catalogue
/
DevOps
/
Grafana Loki for Centralised Log Aggregation and Querying

Grafana Loki for Centralised Log Aggregation and Querying

A practical two day technical course for participants who are new to Grafana Loki and want to implement centralised log collection, storage, querying, and troubleshooting. The agenda progresses from Loki architecture and Alloy-based log collection through labels, LogQL, ingestion pipelines, monitoring, and operational troubleshooting. The course focuses on designing useful and efficient logging workflows rather than simply collecting larger volumes of log data.

What will you learn?

You will learn how Loki stores and queries logs, how Grafana Alloy collects and processes log data, and how labels determine log streams and query performance. You will work with LogQL for filtering, parsing, aggregation, and log-derived metrics and learn how to design ingestion pipelines for applications, hosts, containers, and Kubernetes. You will also learn how to troubleshoot missing logs, ingestion failures, expensive queries, and common operational issues.

  • Collect and send application, system, and Kubernetes logs to Loki with Grafana Alloy
  • Design useful labels and query logs efficiently with LogQL
  • Build ingestion pipelines that parse, transform, filter, and enrich log data
  • Monitor and troubleshoot Loki ingestion, queries, storage, and operational behaviour

Requirements:

  • Technical background in DevOps, SRE, cloud engineering, infrastructure, software development, or a related field
  • Basic knowledge of Grafana and Grafana Alloy
  • General familiarity with logs, containers, or Kubernetes is helpful
  • Previous Grafana Loki experience is not required

Course Outline*:

*We customize the course outline and content to your specific needs and relevant use cases.

Module 1: Grafana Loki architecture and logging fundamentals

  • Understanding Loki as a horizontally scalable log aggregation system
  • Understanding labels, streams, chunks, indexes, and object storage
  • Following the Loki write path from distributor through ingesters to storage
  • Following the query path through query frontend, queriers, ingesters, and stored log data

Module 2: Collecting logs with Grafana Alloy

  • Understanding collectors, transformers, and writers in Alloy log pipelines
  • Collecting logs from files, containers, system services, and Kubernetes
  • Processing log entries with loki.process and relabelling with loki.relabel
  • Sending processed logs to Loki with loki.write

Module 3: Labels, streams, and cardinality

  • Selecting useful low-cardinality labels for applications and infrastructure
  • Understanding how label combinations create separate log streams
  • Distinguishing indexed labels from information that should remain in the log content
  • Identifying high-cardinality labels and avoiding common labelling problems

Module 4: LogQL fundamentals

  • Selecting log streams with label selectors
  • Filtering log lines using text and pattern expressions
  • Parsing JSON, logfmt, and structured log content at query time
  • Combining selectors, parsers, filters, and extracted fields into useful queries

Module 5: Designing ingestion pipelines

  • Structuring Alloy pipelines for different application and infrastructure log sources
  • Parsing, filtering, transforming, and enriching logs before ingestion
  • Adding consistent service and environment metadata
  • Deciding which processing belongs at ingestion time and which belongs in LogQL queries

Module 6: LogQL for analysis and log-derived metrics

  • Filtering and comparing extracted fields and labels
  • Aggregating log streams with count, rate, and related metric queries
  • Grouping results by useful service, environment, severity, or application dimensions
  • Using queries in Grafana Explore, dashboards, and alerting workflows

Module 7: Troubleshooting log ingestion and queries

  • Diagnosing missing logs across source, Alloy, network, and Loki ingestion stages
  • Investigating rejected writes, rate limits, validation failures, and discarded samples
  • Working with pipeline errors and the LogQL __error__ label
  • Diagnosing slow, expensive, or high-cardinality queries

Module 8: Production operation and reliability

  • Monitoring Loki components, ingestion rates, query behaviour, and storage growth
  • Understanding retention, limits, multi-tenancy, and operational boundaries
  • Using Loki logs, metrics, and Grafana data source diagnostics during troubleshooting
  • Building a practical production readiness checklist covering collection, labels, ingestion, querying, monitoring, and recovery

Hands-on learning with expert instructors at your location for organizations.

3,072€*
Graph Icon - Education X Webflow Template
Level:
intermediate
Clock Icon - Education X Webflow Template
Duration:
14
Hours (days:
2
)
Camera Icon - Education X Webflow Template
Training customized to your needs
Star Icon - Education X Webflow Template
Immersive hands-on experience in a dedicated setting
*Price can range depending on number of participants, change of outline, location etc.

Master new skills guided by experienced instructors from anywhere.

2,037€*
Graph Icon - Education X Webflow Template
Level:
intermediate
Clock Icon - Education X Webflow Template
Duration:
14
Hours (days:
2
)
Camera Icon - Education X Webflow Template
Training customized to your needs
Star Icon - Education X Webflow Template
Reduced training costs
*Price can range depending on number of participants, change of outline, location etc.

Upcoming Sessions

23-24 Feb 2027
Stockholm
24-25 Mar 2027
Lisbon
6-7 May 2027
Stockholm
18-19 May 2027
Madrid
24-25 Jun 2027
Amsterdam
1-2 Jul 2027
London

Can't find a suitable date? Get in touch and we'll arrange one that works for you.

We use cookies to improve site navigation, analyse how the site is used, and support our marketing. You can accept all cookies, reject non-essential ones, or choose individual categories. Read our Cookie Notice