---
title: "AuditLog"
description: "AuditLog"
url: "https://www.contentstack.com/docs/developers/sdks/content-management-sdk/javascript/reference/auditlog"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-13"
---

# AuditLog

## AuditLog

An audit log displays a record of all the activities performed in a stack and helps you track all published items, updates, deletes, and the current status of the existing content.

## fetch

The fetch AuditLog call fetches AuditLog details.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).auditLog('audit_log_item_uid').fetch()
.then((log) => console.log(log))
```

UID of the audit log item

## fetchAll

The fetchAll method retrieves the details of all the branches of a stack.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).auditLog().fetchAll()
.then((logs) => console.log(logs))
```

Limit on API response to provide content in the list

Offset for skipping content in response

To retrieve the count of Branch.

## AuditLog | JavaScript Management SDK | Contentstack

AuditLog records all stack activity, tracking published items, updates, deletes, and current content status in the JavaScript Management SDK.