# Audit log

> What the audit log of Oktul eID SSO records once you turn it on, what it never stores, how long it keeps events and how to export them as CSV.
>
> Documentation for Oktul eID SSO for Jira, for Jira Cloud, by Oktul: https://oktul.com/docs/plugins/eid-sso/audit-log/

The **Log** tab holds the audit log: the logins, user changes and admin changes you choose to
record, kept for one year.

## What to record

Five switches, all off until you turn them on and select **Save**.

| Switch | Records |
|---|---|
| **Successful logins** | Logins that reached Atlassian: the provider, the user's email, a hash of the personal code, and how long before the login the eID authentication was |
| **Refused logins** | eID logins the app refused, and why: no user with this personal code, a deactivated user, an expired login, a provider that refused |
| **User changes from SCIM** | Users Entra ID added, changed or deleted, and what changed. A personal code moved to another user shows as the same hash on two users |
| **Refused SCIM requests** | A request to the SCIM address without a valid token, at most one every 10 minutes |
| **Admin changes** | Changes on the admin page, with the admin who made it: providers, the login page, Guard, the SCIM token, signing certificates and exports |

<Aside type="note" title="Turning the log off is itself recorded">
A change of these switches is always recorded, with the admin who made it and the kinds now on.
With every switch off, the log records only changes to the switches.
</Aside>

Egress approvals and the token relay's URL are not in the log. Both are confirmed in Atlassian's
own dialogs, outside the app.

**Refused logins** covers a login that reached the app from a real browser session. A malformed
request, a replayed one and a cancelled login are not recorded, which keeps a stranger from
filling the log. Neither is a login stopped by an
[inactive licence](../install/#licensing-and-what-happens-when-it-lapses), because nobody has
authenticated by then.

## Events

The log lists events newest first, 50 at a time, with **Load more**, **Refresh** and a filter:
**All events**, **Logins**, **Admin configuration** or **User directory (SCIM)**.

| Column | Shows |
|---|---|
| **Time (UTC)** | To the second |
| **Category** | **Login**, **Configuration** or **User directory** |
| **Event** | What happened, with **Refused** under it when it was refused |
| **Who** | The admin, by name, or the user's email |
| **Details** | Plain sentences: the provider, why a login was refused, what SCIM changed, which signing certificate is in use, and the hash of the personal code |

## What is never stored

- **Personal codes.** Only a keyed hash.
- **Tokens, secrets and the provider's answer.**
- **The text of a request.**

The log stores the user's email address, which keeps an event readable after the user has left
the directory.

## Retention

Events are kept for **one year**, and the period is not a setting. Atlassian's storage deletes
an event within about 48 hours after that; the page and the export skip it in the meantime.

## Export

The **Export** part shows a period of days, in UTC, as CSV in a field to copy.

- Up to 1,000 events show at a time, oldest first. A longer period comes in parts: copy one,
  then select **Next part**.
- The CSV also carries each event's technical detail, which the page does not show.
- Exports are recorded in the log, when you record admin changes.

To keep events longer than a year, copy each period into your own archive. For
[TARA](../tara/#keeping-a-record-of-logins), the Estonian Information System Authority advises
1 to 7 years.

## If an event cannot be written

A failed write never fails the login, the SCIM request or the save it would have recorded. The
request goes on, and the event is missing from the log.

## Common questions

**Does the audit log record anything by default?**

No. All five kinds of event are off until a Jira admin turns them on and saves. Your organisation decides what it records about its users and admins.

**Does the audit log hold personal codes?**

No. It holds a keyed hash of the code, which ties one person's events together and cannot be turned back into the code without a key in the app's secret store.

**How long are events kept?**

One year. To keep them longer, export a period as CSV into your own archive.

## Related

- [Security](../security/#a-jira-admin-controls-single-sign-on)
- [Privacy and data handling](../privacy/)
- [Health check](../health-check/)

---

A problem or a question? Write to [support@oktul.com](mailto:support@oktul.com) or open a request in the [Help Center](https://support.oktul.com).
