# auditLogMax

Maximum audit records retained in memory. Oldest records are removed when exceeded.

Canonical: https://grid.syidax.com/docs/options/auditLogMax/

<a id="meaning"></a>

## What does this API do?

Maximum audit records retained in memory. Oldest records are removed when exceeded.

<a id="contract"></a>

## Exact input and result types

```typescript
auditLogMax: number
```

| Item | Value |
| --- | --- |
| JavaScript name | auditLogMax |
| HTML attribute | audit-log-max |
| Default | 1000 |
| Input type | number |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the audit-log-max attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="recipes"></a>

## Feature explanations and examples

- [View change history](https://grid.syidax.com/docs/features/audit-log.md) — The audit log tracks row, cell, and selection changes and undo/redo transitions. Use it to inspect change history that current values alone cannot reveal.
