---
title: Auditing
---
## Auditing within AdminUI

Audit records can either be viewed through the main navigation bar option Auditing, or through the Auditing tab on a User or Resource. On these pages you can:

- Filter audit records
    - Time based
    - Source, Origin of the audit event 
    - Action, the action of the event
    - Resource, the entity the action was applied to
    - Source, the entity performing the action 
- Download audit records in CSV format

To view audit records you need to either have the Auditing permission or All permission.

## Auditing Configuration

The following configuration settings can be used to control Auditing within AdminUI

- `AuditRecordsConnectionString` The database connection string for AdminUI audits, if missing will default to the `IdentityServerConnectionString`
- `AuditRecordsCulture` Language used for generation of audit records, if missing or invalid will default to English (en-GB), supported cultures and their values are:
    - `de` German
    - `zh-TW` Chinese (Traditional)
    - `zh-CN` Chinese (Simplified)
    - `es` Spanish
    - `fr` French
- `AuditReadActions` Set to `true` or `false`, if missing will default to `true`, if `false` no audit records will be generated for read actions e.g when a user views resources though AdminUI

## IdentityServer Auditing

Events that happen inside IdentityServer can be recorded into the same audit database as AdminUI, providing a single view of all Identity related events.

To learn how to integrate your IdentityServer auditing into AdminUI, follow our walkthrough [here](https://www.identityserver.com/articles/adminui-audit-event-sink) 

## Resource Specific Audit Tab

When navigating to Users and Clients there is a resource specific audit tab where you can access logs related to the User or Client you are viewing or editing. On this screen an option is added
to the filters named 'When Subject or Resource'. This will get audits where the current entity being viewed is the Subject(actor making the action) when `Subject` is selected and the Resource(target of any action being made)
when `Resource` is selected.

![Subject or Resource selector in filters](img/subject_or_resource_filter.png)