Loki logging for DORA anomaly detection requirements

Loki can collect, retain and query the logs a financial entity needs for DORA Article 10 detection, alerting and testing, but it does not make the entity compliant. This page maps each requirement to configuration and evidence.

On this page

How Loki supports DORA Article 10 anomaly detection

A financial entity in scope of DORA needs to detect anomalous activity and set alert thresholds that start incident response. Loki supplies the log collection, retention, querying and alerting layer for that work, while the detection design, the thresholds and the regular testing of detection remain the entity's responsibility. DORA has applied since 17 January 2025, and it sets no certification scheme, so no product can make a deployment compliant on its own.

Article 10(1) asks for mechanisms that promptly detect anomalous activities, including ICT network performance issues and ICT-related incidents, and for those mechanisms to be tested regularly. Loki helps with the evidence side of this: it stores logs from the systems in scope in object storage, keeps them for a period you configure with the compactor's retention settings, and lets analysts query them with LogQL. Loki does not decide what counts as anomalous. Your team must define the log sources, the baselines and the rules, and must test that those rules fire on realistic activity. Confirm with your own risk function which sources the entity treats as in scope before you configure collection.

Article 10(2) asks for multiple layers of control, alert thresholds and criteria that trigger ICT-related incident response, including automatic alerts to incident response staff. Loki's ruler can evaluate LogQL alerting rules and send them onward, so it can carry one layer of that design. The thresholds themselves, the escalation paths and the decision that an alert is a reportable incident belong to your incident management process. Loki also has no built-in authentication, so the query and ruler endpoints must sit behind an authenticating reverse proxy, and access to the detection platform should be reviewed as part of the same control set.

Mapping DORA Article 10 requirements to Loki capabilities

This table maps each DORA Article 10 obligation to the Loki feature that supports it and the configuration that makes the feature work. Read each row as a question an assessor may ask, with the Loki setting that provides the answer. The main takeaway is that Loki supplies the log store and alerting engine, while authentication, tenant isolation and retention rely on configuration and the surrounding controls.

RequirementLoki capabilityConfiguration needed
Article 10(1): prompt detection of anomalous activityRuler evaluates LogQL alerting rules against ingested logs, and Grafana Alerting can query Loki for the same patternsDefine rules for the activity your entity treats as anomalous, and confirm ingestion latency meets your detection expectations before relying on it
Article 10(1): regular testing of detection mechanismsKnown test events can be injected into a dedicated tenant and checked for alert firing, giving a repeatable test pathKeep test tenants and test rules under version control, and record each test run and its results as evidence
Article 10(2): multiple layers of control and alert thresholdsAlert rules can be layered across log streams, with thresholds set on counts and rates of matching eventsSet thresholds per stream selector, document the rationale for each, and confirm the ruler is enabled in your deployment
Article 10(2): automatic alerts to incident response staffRuler and Grafana Alerting route firing alerts to notification channels such as on-call toolsConfirm notification routing to the incident response team, and test that delivery works outside business hours

How log data moves from sources to alerts in Loki

Log data for DORA anomaly detection moves through four stages: event sources, a shipper, Loki's storage layer, and then the ruler and Grafana Alerting, which notify incident response staff. Grafana Alloy is the shipper to plan for. Grafana's supported log shipper for Loki is Grafana Alloy, and Promtail reached end of life on March 2, 2026, with no further updates or commercial support. Any new deployment that the detection design depends on should start with Alloy, and any existing Promtail agents on authentication logs, network devices or core banking systems belong on the migration list before the detection rules are written. Loki also accepts OpenTelemetry logs over HTTP and Fluent Bit, Fluentd and the Docker logging driver, so confirm which sources your team can reach with each option before you commit to a shipper design.

Inside Loki, compressed log chunks and the index sit in object storage. TSDB is the recommended index store for Loki 2.8 and newer, and Loki's documentation lists Amazon S3, Google Cloud Storage and Azure Blob Storage as recommended production object stores. The labels you choose at ingestion determine which streams the ruler can select, so the label design decides whether an alert can isolate one system, one tenant or one control point. Ask your platform team to confirm which object store and bucket policy will hold the chunks, because the storage location and its access rules are part of the evidence an examiner will ask about.

Alerting runs from log queries. The ruler evaluates alerting rules written in LogQL against stored logs, and Grafana Alerting can evaluate log queries and route notifications to the on-call or incident response channel. The threshold logic that Article 10(2) expects, including automatic alerts to incident response staff, is defined here, so each rule should name its owner, its severity and its escalation path. Test the full chain end to end with a known synthetic event, and confirm that the notification reaches a person or paging service during business and out-of-hours windows. Where the ruler and Alerting are both used, document which one owns each rule so that a change in one does not silently leave the other unaware.

Where Loki sits in the detection stack

The flow starts at event sources such as servers, containers and cloud services, which Grafana Alloy collects and forwards to Loki through the authenticating reverse proxy that marks the trust boundary in front of it. Loki writes compressed chunks and its index to object storage, and reads from the same store to answer queries. The ruler evaluates alert rules against stored logs and passes firing alerts to Grafana Alerting, which routes them to the incident response channel. Check that every write and read path crosses the proxy, and that alert routing reaches staff who can act on it.

Log flow from sources through Loki to alerting and incident response, with the proxy as trust boundary.

Choosing a Loki deployment mode for detection workloads

Monolithic mode runs Loki as a single binary that handles ingestion, querying and storage coordination together. Loki's documentation places it at up to about 20 GB of logs per day, which fits a single regulated entity with a modest set of event sources such as identity logs, core banking access logs and firewall events. Operating it is simple, but every function shares one process, so a failure stops both ingestion and queries at the same time.

  • Operating footprint: one binary, one configuration file and one set of upgrade steps.
  • Failure impact: a single process failure interrupts log collection and alert evaluation together, so detection gaps can open unnoticed.
  • Storage: the documentation lists the local filesystem for monolithic use, but the storage docs say it is not typically recommended for production, so plan object storage such as S3, Google Cloud Storage or Azure Blob Storage.
  • Growth: moving to a larger mode later requires a planned migration, so size for the next few years of event sources.
  • Tenancy: multi-tenancy is enabled through configuration, so separate tenants for business lines can still run here.

Confirm the daily ingestion volume from your event sources, including peak periods, before accepting this mode.

Evidence an examiner can review from Loki

An examiner reviewing Loki under DORA Article 10 will want to see what the detection rules were, how long data was kept, who could reach the logs, and proof that alerts actually fired. Each artifact below should be generated or exported on a schedule and stored in a location the entity controls, so the evidence file survives changes to the cluster.

Alert rule definitions under version control

Keep every Loki ruler and Grafana alert rule as code in a Git repository with reviewed commits, so the detection logic in force on any date can be reconstructed. Export rule files from the ruler and the Grafana provisioning directory, then tag releases that match each review cycle. Check that each rule maps to a named anomaly scenario and to the alert threshold that triggers incident response, since Article 10(2) ties thresholds to incident handling. Confirm who approves changes and keep those approvals with the commit history.

Retention and compactor configuration

Store the Loki configuration file that sets retention_enabled and the per-tenant or per-stream retention rules, together with the compactor settings that apply them. Retention is disabled by default, so an examiner will expect a record showing it was turned on deliberately and for which streams. Keep dated copies of the configuration and the effective values from the running cluster, and note any change in your change log. Confirm that detection-relevant streams are retained long enough for the review period your entity has set.

Loki retention docs

Tenant and access configuration

Record the auth_enabled setting, the tenant IDs in use and the reverse proxy rules that decide which users can send or query each X-Scope-OrgID. Loki has no built-in authentication, so the proxy configuration is part of the access evidence. Export the proxy and identity group mappings, and review them on a fixed schedule with a signed record of who approved each entry. This shows that only authorized staff can read or alter the logs that feed anomaly detection.

Loki multi-tenancy docs

Grafana Alerting notification history

Export the contact points, notification policies and notification history from Grafana Alerting for the review period. The history shows when a threshold was crossed, which route received the alert and whether it was acknowledged. Pair these records with your incident ticket identifiers so an examiner can trace one alert from detection to response. Confirm that the export includes silences and muted rules, because those are common gaps in detection evidence.

Reverse proxy query audit trail

Retain access logs from the authenticating reverse proxy in front of Loki, including the user identity, tenant header, query text and timestamp for each request. These records show who searched detection data and who changed alert-relevant settings through the API. Store the proxy logs in a separate tenant or store with restricted write access, so the people being monitored cannot edit their own trail. Confirm the proxy log format captures the identity field your identity provider supplies.

Test records for seeded events

Keep a test plan and results showing that known anomalous events, such as repeated failed sign-ins or unusual privileged commands, were injected into a non-production tenant and triggered the expected alert. Record the seeded event, the rule that should fire, the time it fired and the retest after any rule change. Article 10(1) requires detection mechanisms to be regularly tested, so dated test records are the evidence that the detection stack works, not only that it is configured.

Article 10 text

Configuring Loki for Article 10 detection

This sequence turns Loki into a documented detection layer for DORA Article 10: it defines what is collected, secures access, sets retention, and produces alert rules with thresholds tied to incident response and a record of regular testing. Each step ends with an artifact an internal reviewer or competent authority could inspect.

  1. Scope log sources and user activity

    The compliance, security and platform leads list the ICT systems that support the entity's critical or important functions, then name the user activity each one must record, such as authentication events, privileged actions, configuration changes and data access. Network performance and ICT-related incident signals are included because Article 10(1) names them. The output is a source inventory with an owner and log type for each source, reviewed against the entity's ICT risk register.

  2. Enable authentication and tenancy

    The platform team sets auth_enabled to true so Loki runs in multi-tenant mode, then assigns a tenant ID to each business unit, environment or sensitive system group. Clients send the X-Scope-OrgID header on every request, and log shippers are configured to set it consistently. The check is a test write and read for each tenant, confirming that a request without the header or with another tenant's ID is refused or returns no foreign data.

  3. Place an authenticating proxy with OIDC

    Loki has no built-in authentication layer, so the team places an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it. The proxy is connected to the entity's existing OIDC identity provider, so analysts sign in with named accounts and multi-factor authentication applies. Operators confirm that unauthenticated requests are rejected, that the proxy strips or sets the tenant header itself, and that the Loki port is not reachable except through the proxy.

  4. Set retention per tenant or stream

    Retention is disabled by default, so logs are kept indefinitely until the team sets retention_enabled in the compactor configuration. The team then defines retention globally, per tenant or per stream selector, with each rule at least 24 hours, using periods agreed with the compliance function and the entity's record-keeping obligations. The output is a retention table mapping each tenant and stream to its period, and a test showing that the compactor applies the rule to aged data in a non-production cluster.

  5. Write alert rules with documented thresholds

    Detection engineers write LogQL alert rules for the anomalies identified in the scoping step, such as repeated failed logins, privilege escalation, unusual access volumes and log ingestion gaps that could hide an incident. Each threshold is recorded in a register that states the rule, its threshold, the reason for it and the incident classification it maps to under the entity's own ICT incident process. The check is that every rule has a named owner and a classification entry, and that thresholds are reviewed when systems change.

  6. Route alerts to incident response staff

    Alerts are routed so that qualifying events reach incident response staff automatically, with escalation paths for after-hours coverage and for alerts that remain unacknowledged. The routing configuration, notification targets and on-call roster are documented together. The output is a routing test in which a synthetic event triggers the rule and the correct responders receive it, with the time and recipient recorded in the test log.

  7. Schedule regular detection tests

    Article 10(1) requires detection mechanisms to be regularly tested, so the security team schedules recurring tests at a frequency set in the entity's testing policy. Each test replays or injects known suspicious activity, confirms that the expected rule fires, and checks that retention, tenancy and access controls still work. Results are compared against the threshold register, and any missed detection leads to a documented fix and a retest.

  8. Store test results as audit evidence

    The team stores each test record, alert history, threshold register revision, access review and retention configuration in a controlled repository with restricted write access and a retention period matching the entity's documentation rules. Records are linked to the source inventory so an examiner can trace a control from the ICT system to the rule, the alert and the response. The closing check is a sample walk-through in which one test is traced end to end from configuration to stored evidence.

Questions financial entities ask before using Loki for DORA detection

How much effort and cost should we expect for a Loki detection build?

No price or effort figure is supplied for this work, so the quote should follow from a written scope. The main cost components are the engineering time to deploy Loki and object storage, the log shipping work across each source, the detection rules and alert routing, and the testing that proves the detections fire. Costs rise with log volume, the number of sources that need parsing, the number of alert paths into incident response and the number of environments. Ask for a quote that separates one-time build work from recurring items such as upgrades, rule tuning and retesting, and that states which of your teams carry each task.

Can our own platform team run Loki for DORA detection without a partner?

Yes, many teams run Loki in-house, provided they have people who can operate object storage, Kubernetes or Linux hosts, and Loki's configuration. The harder parts for a regulated entity are usually not the install itself but writing detection rules that map to Article 10, defining alert thresholds with incident response staff, and producing test evidence. Check whether your team has these skills in place today, how many people can cover on-call for the logging platform, and whether change control for Loki upgrades is already defined. A partner is most useful when those gaps are known before the build starts.

How long does a Loki detection setup usually take?

The supplied research does not give a duration, so treat any timeline as something to confirm in writing. Duration depends on the number of log sources, whether the target is a single server or a Kubernetes cluster, how many detection use cases are in scope, how quickly your security team can review alert thresholds, and how long change approvals take in your organization. Ask for milestones tied to deliverables, such as ingestion for the first source, detection rules for the first use case, and the test run that shows alerts reach incident response staff.

What do our platform owners, security and compliance teams need to provide?

Each group has a defined role. Platform owners provide access to the hosting environment, object storage, identity and network paths, and they approve the production change window. Security provides the list of log sources, the threat scenarios to detect, and the alert thresholds and escalation paths. Compliance or risk confirms how the detections map to the entity's ICT risk framework and signs off the testing evidence. Agree on who approves each rule change before the build, because DORA expects detection mechanisms to be regularly tested, which means someone must own the test schedule after go-live.

Does Loki alone satisfy DORA Article 10?

No. Loki is a log store and query engine that can support detection, but Article 10 requires prompt detection of anomalous activity, multiple layers of control, alert thresholds that trigger incident response, and regular testing of those mechanisms. Loki covers the collection and search layer. Alert rules, threshold criteria, automatic routing to incident response staff, process documentation and testing still have to be designed and operated by your organization. Treat Loki as one component in a detection stack that also includes the sources, rule logic, escalation and governance around it.

What should we confirm with our national competent authority?

Confirm with your national competent authority how it expects Article 10 to be evidenced for your type of financial entity, since supervision is run nationally under Article 46. Ask which log sources and user activity it expects to see monitored, how it wants alert thresholds documented, and what testing evidence it reviews. Also confirm whether your entity's ICT services fall under any register or third-party obligations, because a self-hosted Loki deployment may bring a provider into scope. DORA sets no certification scheme for this, so ask for the authority's expectations in writing rather than assuming a standard will be accepted.

What does a DeployOpen engagement cover for this work?

DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted Loki inside your own infrastructure, including cloud accounts, data centers or air-gapped networks. Engagements are usually fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen can also run security testing of the detection setup and prepare the systems, controls and evidence that your auditors or supervisors review. DeployOpen does not issue audit reports, attestations or certifications, and ongoing upgrades or continuous testing are available as retainers.

How DeployOpen configures Loki detection and prepares evidence

DeployOpen plans, builds and documents Loki logging for the detection duties in DORA Article 10, inside infrastructure the financial entity controls. The work covers which sources feed Loki, how alert thresholds are defined and routed, how detection is tested, and what the compliance and security teams receive at handover.

How we scope

  • Map which systems, identity providers and network paths feed detection, and record the owner of each source.
  • Agree the alert thresholds and incident response routes in writing before any build starts.
  • Set out in the written scope which deliverables, environments and timelines are covered. Engagements are fixed-scope.

How we build

  • Deploy self-hosted Loki with object storage, retention and tenant settings sized to the agreed scope.
  • Configure Grafana Alloy pipelines and Loki ruler alert rules that page incident response staff automatically.
  • Test detection with controlled events so the team can show alerts fire as designed and reach the right responders.

How we hand over

  • Document the detection inventory, alert rule logic, thresholds, owners and the escalation path for each alert.
  • Prepare a test record showing how each detection mechanism was exercised, so the regular testing requirement can be evidenced.
  • Walk the operations and security teams through runbooks, access controls on the log store and the retention settings in use.

How we support

  • Ongoing support, upgrades and continuous testing of detection rules are available as a retainer.
  • Review alert thresholds and rule coverage when new systems, ICT services or third-party providers join the environment.
  • Confirm with your own compliance team how DORA applies to your entity type and which retention periods your policies require.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.