Skip to content

Log events ​

Authora writes structured logs through the standard .NET logging. Every message has a stable Event Id, so you can alert on it. Codes, tokens, Secrets, passwords, key material and nonces are never logged; objects appear only by Id.

Ranges ​

RangeArea
1001 – 1008Users
2001 – 2005Roles
3001 – 3003Scopes
4001 – 4016Clients
5001 – 5007Sign-in, sign-out, lockout, Sessions
6001 – 6012Codes, Grants, refreshes, reuse detection, revocation, Client authentication, rejected authorization requests
7001 – 7009Seeding at startup
8001 – 8004Cleanup of expired data and audit events
9001 – 9005Signing keys
10001 – 10007Groups
11001 – 11011Hash chain of the audit log
12001 – 12002Admin interface sign-in and refresh

Events worth alerting on ​

Event IdLevelMessage (shortened)Meaning
5004WarningUser … was locked out …Possible password guessing.
6004WarningAuthorization Code … was used more than oncePossible code theft; the Grant was revoked.
6005WarningRefresh Token … was used more than oncePossible token theft; the Grant was revoked.
6006WarningClient … presented a code or token that was issued to Client …A Client used another Client's token.
6007WarningAuthentication of Client … failedWrong or expired Client Secret.
7006WarningNo administrator who can sign in existsNobody can manage Authora.
7007Warning… a bootstrap password is still configuredRemove Authora:Bootstrap:Administrator:Password.
7009WarningThe Client of the admin interface was not createdThe Issuer gives an invalid Redirect URI; the admin interface cannot be used.
8002ErrorThe cleanup of expired data failedRetried with the next run.
9003ErrorThe changed key files could not be loadedThe previous keys stay in use; health check signing-keys is Degraded.
9004WarningThe signing key file … can be read or written by other usersRestrict the file to the user that runs Authora.
11002ErrorSealing the audit events failedRetried with the next run.
11011CriticalThe audit chain is broken at Sequence …The audit log was changed in the database.

Events to keep ​

Event IdLevelMessage (shortened)Why
11001InformationSealed … audit events. Checkpoint: the audit chain ends at Sequence … with hash …Checkpoints to verify the audit log against. Keep them outside Authora's database.
8004InformationThe hash chain of the audit log starts at Sequence …Written only by the cleanup; compare with system.audit-chain-truncated events.
9001, 9002Information, WarningID Tokens are signed with key …Which key signs, after startup and after each change.
7004, 7005, 7008Warning, InformationCreated the first administrator / a ClientChanges made by the seeding at startup.

Log level ​

appsettings.json sets Information as the default level, and Warning for Microsoft.AspNetCore. At Information, Entity Framework Core also logs its SQL commands (without parameter values). To reduce the volume:

sh
Logging__LogLevel__Microsoft.EntityFrameworkCore=Warning

Released under the MIT License.