> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/pam/administration/audit/reports.md).

# Reports

Turn the audit data into a document: ten operational reports, seven compliance packages, on demand or on a cron schedule, as PDF, XLSX, or CSV.

## What this is and when to use it

A report turns the audit data into a file somebody outside the console can read. Seventeen generators ship with the product: ten **operational** reports over sessions, logins, commands, credentials, accounts, rotations, transfers, approvals and automations, and seven **compliance** packages that map a framework's controls to the operational reports that evidence them.

Use a report when the audience is not sitting at the console: an auditor asking for the quarter's privileged sessions, a manager who wants the monthly account inventory, a framework assessment that needs the same extract every month without anybody remembering to produce it.

If you are investigating one incident, search the [audit trail](https://wiki.datadike.com/pam/administration/audit/audit-trail.md) instead. It is faster and far more precise. Reports are for repeatable, shareable extracts of the same records.

The area sits in the **Audits** profile, under two menu entries:

| Menu                  | What it does                                |
| --------------------- | ------------------------------------------- |
| **Audit › Builder**   | Generates a report now and downloads it     |
| **Audit › Scheduled** | Generates on a cron schedule and e-mails it |

{% hint style="info" %}
The menu entry reads **Builder** but the page it opens is headed **Report Center**. They are the same screen.
{% endhint %}

## Before you start

* A role that grants access to the audit area.
* The data has to exist. A report can only cover the period still inside the retention window set in **System settings › Retention**.
* For scheduled delivery, the system must be able to send e-mail, and you need the recipient addresses.
* Generating a report is itself audited. It appears in the operation log as a `create` on **Report run**, which is also how you find out who else has been pulling reports.

## What every report contains

Whatever the type and whatever the format, the file opens with the same header block. It is what makes the file usable as evidence months later:

| Header line  | What it holds                 |
| ------------ | ----------------------------- |
| Report       | The report's own name         |
| Organisation | The tenant the data came from |
| Period       | The window you asked for      |
| Generated at | Timestamp of generation       |
| Generated by | The user who ran it           |

After the header, an operational report carries a **summary** of counters and then one detail table. A compliance package carries a **control map** and then the operational reports it cites, embedded in the same file.

## Operational reports

Ten generators. The summary column lists the counters each one puts above its table.

| Report                      | Summary counters                                       | Detail columns                                                                               |
| --------------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
| Session activity            | Total sessions, closed, recorded, by protocol          | User, asset, account, protocol, origin, IP, start, end, duration, closed, recorded, commands |
| Commands and violations     | Total commands, by risk                                | Date, user, asset, account, risk, command                                                    |
| Access and authentication   | Total logins, success, failure, with MFA               | Date, user, type, IP, location, MFA, result, reason, backend                                 |
| Credential retrieval        | Retrievals, distinct consumers                         | Date, application or user, account or resource, source IP, action                            |
| File transfer               | Total transfers, uploads, downloads, failures          | Date, user, asset, account, operation, file, success                                         |
| Password rotation           | Password changes                                       | Date, account or user, changed by, IP                                                        |
| Account and vault inventory | Total accounts, privileged, with a secret in the vault | User, asset, privileged, auto-rotation, has secret, version, updated                         |
| Configuration trail         | Total operations, by action                            | Date, user, action, type, resource, IP                                                       |
| Approvals and JIT access    | Total requests, by status                              | Date, title, type, requester, status                                                         |
| Automation runs             | Automation runs, completed or successful               | Date, task, status, completed                                                                |

{% hint style="info" %}
**Account and vault inventory** is the one assessors ask for. The `auto-rotation`, `has secret` and `updated` columns together turn "we rotate credentials" into per-account evidence, and they expose the accounts that rotation has quietly been missing.
{% endhint %}

## Compliance packages

Seven frameworks. A compliance package is not a separate dataset: it is a **control-to-evidence map followed by the operational reports that serve as the evidence**, bundled into one file. So a PCI-DSS report contains the full Access and authentication, Credential retrieval, Session activity, Password rotation and Configuration trail reports, each under its own `== section ==` heading, preceded by the table that says which control each one answers.

| Package                | Controls mapped | Operational reports embedded |
| ---------------------- | --------------- | ---------------------------- |
| PCI-DSS v4.0           | 8               | 5                            |
| SOC 2 (Trust Services) | 7               | 5                            |
| HIPAA Security Rule    | 5               | 4                            |
| ISO/IEC 27001:2022     | 7               | 5                            |
| LGPD (Lei 13.709/2018) | 5               | 4                            |
| NIST SP 800-53 Rev.5   | 16              | 8                            |
| CIS Controls v8        | 12              | 8                            |

The full control-by-control map for all seven is in [Compliance mappings](https://wiki.datadike.com/pam/reference/compliance-mappings.md).

{% hint style="warning" %}
A compliance package is **evidence for an assessment, not an assessment**. It shows what the platform recorded against a list of controls. It does not score you, it does not find gaps, and it is not a certification.
{% endhint %}

## Steps

### Generate now

1. Open **Audit › Builder**.
2. Use **Generate report**. The dialog takes three inputs, and only three.
3. **Report type**: pick from the two groups, **Operational** or **Compliance**.
4. **Period**: a **From** and a **To** date.
5. **Format**: **PDF**, **XLSX** or **CSV**. PDF for the document you hand over, XLSX or CSV for the extract someone will filter themselves.
6. Use **Generate & download**. The file is produced and downloaded from the same screen, and a row appears in the history.

{% hint style="warning" %}
There is no scope filter. The dialog offers report type, period and format, and nothing else: you cannot narrow a report to one user, one asset or one protocol at generation time. Generate the whole period and filter the XLSX or CSV yourself.
{% endhint %}

### Schedule it

1. Open **Audit › Scheduled**, then **New schedule**.
2. **Name** it for the thing it produces, not for the schedule.
3. **Report type** and **Format**, the same choices as the builder.
4. **Window (days)**: how far back each run reaches. The report covers the last N days at run time. Default is 7.
5. **Cron**: `minute hour day month weekday`. The default `0 6 * * 1` is Mondays at 06:00. Pick a window when the platform is quiet, because a wide report over a long period is a heavy query.
6. **Recipients (e-mail)**: type an address and press Enter, once per recipient.
7. Leave **Active** on, and **Confirm**.

Match the window to the cron. A `Window (days)` of 7 on a monthly cron leaves three weeks uncovered every month, and nothing in the console warns you.

## What you should see

In **Builder**, the file arrives in the browser as soon as generation finishes, and the history gains a row. Select any row and the right-hand pane shows its report type, format, status, **row count**, period, date and who generated it.

The row count is the useful number there. A report that generated successfully with zero rows is not an error, and it looks identical to a working report until you open it.

In **Scheduled**, the entry lists its name, report type, cron and recipients, with its last run.

{% hint style="warning" %}
**The run keeps its file.** Downloading from a history row returns the file that was produced at generation time, not a fresh run against the data as it is now, so what you re-send next month is what you sent originally.

There is one gap worth knowing. If writing that file to storage fails, the run is still marked **successful**, with its row count, and only the download reveals the problem by reporting the file as unavailable. A history row that will not download is that case, and the report has to be generated again.
{% endhint %}

## How to verify it worked

A report that generates is not yet a report that is right. Check the content, not the download.

1. Open the file and confirm the **Period** and **Organisation** in its header match what you asked for. A report over the wrong month is the most common defect and the least visible one.
2. Compare the summary counters against the row count shown in the history pane. They should agree.
3. Cross-check one row against the source. Take a session from Session activity and find the same session in [Session recordings](https://wiki.datadike.com/pam/administration/audit/recordings.md); take an account from the inventory and confirm it against [Managed accounts](https://wiki.datadike.com/pam/administration/accounts/managed-accounts.md). If the row is not in the trail, the scope is wrong, not the trail.
4. For a scheduled report, wait for the first scheduled run rather than assuming. Confirm a new row appears in the history at the expected time with `is scheduled` set, and ask one recipient whether the mail arrived. A generated report that was never delivered looks successful from the console.
5. Confirm your own generation appears in the **Configuration trail** report, or in the operation log, as a `create` on **Report run**.

## Common errors

| Symptom                                              | Cause                                                          | Fix                                                                                                                                       |
| ---------------------------------------------------- | -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| The report is empty, or shorter than expected        | The period falls partly or wholly outside the retention window | Check **System settings › Retention**. Data past the window is gone, and raising retention only helps from now on                         |
| Status is success but the row count is 0             | Nothing happened in that period                                | Widen the period. This is not a failure, and the file is still valid evidence that nothing happened                                       |
| A scheduled report never arrives                     | The cron never fires, or the system cannot send e-mail         | Check the entry against the history: rows but no mail is a mail problem, no rows is a cron problem                                        |
| A scheduled report arrives but covers the wrong span | **Window (days)** does not match the cron                      | Set the window to at least the interval between runs                                                                                      |
| Recipients receive it but cannot open it             | The format on the schedule is not the one they expected        | Format is set per schedule, not once for the whole area                                                                                   |
| A report you sent last month no longer matches       | It was re-pulled instead of kept                               | The history stores no file. See the warning above                                                                                         |
| Account inventory shows a stale `updated` date       | Rotation is not reaching that account                          | Follow it up in [Rotation](https://wiki.datadike.com/pam/administration/accounts/rotation.md). The report is correct, the rotation is not |
| A wide report is slow or heavy                       | Long period across many assets                                 | Narrow the period, or schedule it for a quiet window                                                                                      |

## Field reference

### Generate report

| Field               | What it does                 | Values                                 |
| ------------------- | ---------------------------- | -------------------------------------- |
| Report type         | Which generator runs         | Ten operational, seven compliance      |
| Period, From and To | The window the report covers | Two dates, inside the retention window |
| Format              | Output file type             | PDF, XLSX, CSV                         |

### New schedule

| Field               | What it does                                     | Values                                               |
| ------------------- | ------------------------------------------------ | ---------------------------------------------------- |
| Name                | Identifies the schedule in the list              | Free text                                            |
| Report type         | Which generator runs                             | The same seventeen                                   |
| Format              | Output file type                                 | PDF, XLSX, CSV                                       |
| Window (days)       | How far back each run reaches                    | Whole days. Default 7                                |
| Cron                | When it runs                                     | `minute hour day month weekday`. Default `0 6 * * 1` |
| Recipients (e-mail) | Who receives it                                  | One address per entry, Enter to add                  |
| Active              | Turns the schedule on or off without deleting it | On or off                                            |

### History row

| Field               | What it holds                                   |
| ------------------- | ----------------------------------------------- |
| Report type, Format | What was generated, and as what                 |
| Status              | `success`, or the failure with its error text   |
| Rows                | How many detail rows the file carried           |
| Period              | The window that run covered                     |
| Date, Generated by  | When, and by whom                               |
| Is scheduled        | Whether a schedule produced it, or a person did |

## Known limitations

* **The report content is written in Portuguese**, whatever language the console is set to. Headers, summary labels, column names and the report titles themselves do not follow the interface language. A report for readers who do not read Portuguese has to be translated after it is generated.
* **No scope filter at generation time**, as described under Generate now.

## Related pages

* [Audit trail](https://wiki.datadike.com/pam/administration/audit/audit-trail.md) — the records the reports are built from
* [Compliance mappings](https://wiki.datadike.com/pam/reference/compliance-mappings.md) — every control each package answers
* [Session recordings](https://wiki.datadike.com/pam/administration/audit/recordings.md) — the evidence a session report points at
* [Managed accounts](https://wiki.datadike.com/pam/administration/accounts/managed-accounts.md) — what the account inventory reports on
* [Rotation](https://wiki.datadike.com/pam/administration/accounts/rotation.md) — what the rotation report measures
