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

# 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.

## find

The "Get audit log" request is used to retrieve the audit log of a stack.

```
import contentstack; 
Contentstack contentstack = new Contentstack.Builder().build();
AuditLog auditlog = contentstack.stack().auditLog();
Call<ResponseBody> response = auditlog.find().execute();
if (response.isSuccessful){ 
    System.out.println("Response"+ response)
}
```

## fetch

The "Get audit log item" request is used to retrieve a specific item from the audit log of a stack.

```
import contentstack; 
Contentstack contentstack = new Contentstack.Builder().build();
AuditLog auditlog = contentstack.stack().auditLog();
Call<ResponseBody> response = auditlog.fetch().execute();
if (response.isSuccessful){ 
    System.out.println("Response"+ response)
}
```

## removeParam

Set header for the request.

```
import contentstack; 
Contentstack contentstack = new Contentstack.Builder().build();
AuditLog auditlog = contentstack.stack().auditLog();
response = auditlog.removeParam("key")
```

header key for the request

## addParam

Sets header for the request.

```
import contentstack; 
Contentstack contentstack = new Contentstack</span>.Builder().build();
AuditLog auditlog = contentstack.stack().auditLog();
response = auditlog.addParam("key", value)
```

Header key for the request.

Header value for the request.

## addHeader

Sets header for the request.

```
import contentstack; 
Contentstack contentstack = new Contentstack.Builder().build();
AuditLog auditlog = contentstack.stack().auditLog();
response = auditlog.addHeader("key", value)
```

Header key for the request.

Header value for the request.

## AuditLog | Java Management SDK | Contentstack

AuditLog records all activities performed in a stack, helping you track published items, updates, deletes, and current status in the Java Management SDK.