Skip to content
Guides & References

Audit trail and evidence

What rConfig records about who did what, how long it keeps it, and how to export Security Center results as evidence for audits and NIS2 reviews.

SecurityUpdated
On this page

Audit trail and evidence

An auditor asks two kinds of question about a system like rConfig: what happened (who signed in, who changed a setting, who accepted a risk), and how the system is configured right now. rConfig answers the first with its logs and the second with Security Center. This page explains what each records, how long it keeps it, and how to get it out of rConfig in a form an audit pack can use.

None of this makes rConfig, or your organisation, compliant with anything on its own. It gives evidence towards controls; the policies, processes and judgement around it are yours.


What rConfig records

Record What it holds Where to read it
Activity log (the Application Log) Sign-in attempts, successful and failed; settings changes; device connections and downloads; snippet deployments; task runs; Security Center fixes and accepted risks; MCP token creation and revocation; every MCP tool call Application Log
System logs Framework and technical diagnostics: errors, exceptions, queue job failures, horizon.log System Logs
AI audit trail Every AI request: user and IP, capability, conversation, provider and model, token counts, time. Never prompt, config or response text GET /api/ai/audit-logs, see AI governance
Security Center runs Each full check run: every check’s result, the evidence it collected (never a secret), accepted risks and the advisories that applied Settings > Security Center and the export
Config history Every configuration version collected from every device, with its diffs Device config history and Change Pulse

Two details matter when you plan around these. MCP tool calls are logged with the tool name, the outcome and the device ID where there is one, but not the tool’s arguments. And the AI audit trail is metadata only by design, so it answers “who asked what kind of question, and where did it go” but not “what exactly was asked”.

How long it is kept

rConfig purges rather than archives. Retention is set per table in Data Purge, and a purge deletes data permanently.

  • Activity log: 90 days by default, purged daily.
  • System log files: the default daily channel keeps 14 days of laravel-*.log files.

If your policies need longer, for example a year or more of sign-in events, forward the logs to a SIEM or long-term store before the retention window closes. Lengthening retention inside rConfig works too, at the cost of a larger database and slower log searches.


Evidence from Security Center

Security Center is the main source of “how is it configured right now”. Each finding carries the evidence the check collected and the standards it maps to: NIST SP 800-53, NIS2 Article 21, CIS Benchmarks and OWASP ASVS, where they apply. Four ways to get it out:

Route Gives you Suits
Export > JSON The full report, schema version 1, the same as php artisan rconfig:security-check --json Archiving a point-in-time record, or feeding a script
Export > CSV One row per check A spreadsheet or an audit pack
GET /api/v2/security/review The latest report with today’s accepted risks applied, the run history and the advisory feed state SIEM and compliance tooling, on a schedule. Needs a REST API token with the security.read ability
get_security_posture (MCP) Failing and warning checks with their fixes, and the advisories that apply An AI agent assembling a summary

Accepted risks are part of the evidence, not a way round it. An accepted finding stays in the report and in every export, marked Accepted, with the reason (at least 10 characters) and a review date no more than a year away. Accepting and ending acceptance are both recorded in the activity log. An auditor sees what you decided, why, who decided it and when you will look at it again.

The run history answers “is this checked continuously”: the scheduler runs a full check every day, and runtime.security_check_stale warns after 48 hours without one.

The NIS2 Article 21 mapping

The NIS2 Article 21 mapping lists, for each risk-management measure in Article 21(2), the Security Center checks that give evidence for it and the related NIST SP 800-53 controls. Measure (j), multi-factor authentication, is a good example of how to read it: rConfig has no built-in second factor, so the evidence is accounts.mfa together with your identity provider’s MFA policy for SSO sign-ins.

Read the mapping as “where Security Center helps”. Most measures also need policies, processes and evidence from outside rConfig, and the mapping says so.

Uplink guideBuild a network audit evidence pack from rConfig compliance with an AI agentAn AI agent gathers compliance status, failing policies and config evidence from rConfig over MCP, and drafts an audit evidence pack in Confluence or Jira.Read the guide

A routine that holds up

  1. Schedule GET /api/v2/security/review into your SIEM or compliance store, so the evidence exists without anyone remembering to export it.
  2. Forward the activity log before its retention window closes.
  3. Give every accepted risk an owner and a review date you will actually meet.
  4. Before an audit, export JSON and CSV for the audit pack, and ask the Security Assistant for a summary to start from, then check it against the report.

Type to search.