Operations

Logs and health

Where DPLens reports on itself, and how to tell whether it is well.

DPLens reports on itself in four places. Knowing which to look at saves time.

PlaceWhat it holdsWhen to use it
The consoleLive health, rates, queue depths, lossesFirst. Almost everything is here.
The Windows event logService start and stop, and failures to startWhen the service will not run
The audit logEvery change, who made it, whenWhen you need to know what changed
The diagnostics fileThe agent's own detailed outputWhen the console cannot tell you, usually with support

The console

Overview is the health page. The indicator in the header opens a breakdown: which component is unhealthy and why.

StateMeaningWhat to do
HealthyEverything runningNothing
DegradedSomething is not working; the rest continuesOpen the breakdown
RestartingA component failed and is being restartedWatch it; if it settles, nothing
QuarantinedRepeated failures; stopped so it cannot affect the restFix the cause, then re-enable

Quarantine is deliberate isolation. One badly-configured source does not take the agent down with it — but it also will not recover by itself once quarantined.

The Windows event log

The service's own start, stop and failure-to-start records are where Windows puts them, under Windows Logs → System, from the Service Control Manager.

If the service will not start at all, this is the place to look first. A configuration file it cannot read or cannot parse is the usual cause; check it before restarting:

"C:\Program Files\DPLens\dplens.exe" --validate-only --config "C:\ProgramData\DPLens\config\agent.yaml"

The audit log

C:\ProgramData\DPLens\state\audit\audit.jsonl

One record per line, append-only, each chained to the one before it with a cryptographic hash. A record cannot be changed or removed without breaking the chain, and the console tells you whether the chain verifies.

Read it in the console under Settings and audit → Audit, or collect the file itself into your SIEM — it is one JSON object per line, so any collector that reads NDJSON can take it. You can even point a DPLens file source at it.

It records changes, not health: sign-ins and failures, configuration applies and rollbacks, password changes, certificate installation, licence changes, masking policy changes, re-baselining, and the agent's own start-up checks.

If the chain does not verify, the file has been altered or truncated since it was written. That is worth investigating: the folder is protected so that only administrators and the service can write there.

The diagnostics file

Off by default. Turn it on in Settings and audit → Resources → Diagnostics capture, or in configuration:

settings:
  diagnostics:
    file_log: true
    max_file_mb: 16
    keep: 4

Written to:

C:\ProgramData\DPLens\state\logs\dplens-core.log

with rotations beside it. Size limit × files kept is the most disk it can ever use — with the defaults, 64 MB.

This is the agent's own output: start-up, component lifecycle, delivery errors. It is not your log data. Secrets are never written to it.

It applies when DPLens runs as a Windows service. Run from a command prompt, the output goes to the console instead.

Turn it on when you are investigating something, and off again afterwards.

What "healthy" does not tell you

The health indicator says components are running. It does not say you are collecting what you meant to. Two things on Overview answer that:

Signals worth alerting on

SignalWhere
Service not runningsc.exe query dplens
Agent health not HealthyOverview
Destination in cached backlog longer than expectedDestinations
Cache depth approaching its capSettings → Resources
Drops you did not configureOverview
Licence approaching expirySettings → Licence
Audit chain not verifyingSettings → Audit