Skip to content

Loki

Module: observability.

Grafana Loki is an open-sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. store for logs. In Government Data it keeps the technical logs of every service on every server of the installation, which Alloy collects and Grafana shows.

Technical logs say what happened inside a process, for whoever runs the installation. Every service writes them as JSONJavaScript Object Notation A common plain-text format in which programs exchange structured data. with the same fields: time, level, service, server, request, run and job. So one search shows every line of one run, across all servers.

Technical logs carry no personal data. Values read from sources, ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. tests or findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. are never logged: errors name ids and field names, not values, and a second layer drops known sensitive fields. Who saw which personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail. is not a technical log: it is the audit logAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., in PostgreSQL.

With How
Alloy Alloy pushes each server’s logs to Loki
Grafana Grafana queries Loki, inside the observability module
The lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. Loki keeps its data in a bucket of its own, over S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer.

In the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. (RustFS), in a bucket of its own, for 90 days. Like everything in the lake, the replica keeps a copy. An organisation that runs its own log system can also have Alloy forward the logs there.

Government Data · Guide v0.8.1