---
title: "Configure audit log export via API"
sidebar_label: "Configure export via API"
sidebar_position: 3
description: "How to configure audit log export via API"
---

import ExportLogsViaApiScript from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/audit-logs/export-logs-via-api-script.mdx'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Configure audit log export via API

We have prepared a script for working with the [Audit Logs API](/api/audit-logs/), which allows you to export audit logs to a file, send them to an IP address via the `syslog` protocol, or to an endpoint via the `HTTP/HTTPS`.

1. [Create a service user](#create-service-user).
2. [Obtain an IAM token for your account](#create-iam-token-account-scoped).
3. [Obtain the script for exporting audit logs](#get-script).
4. [Configure and start the script](#configure-and-start-script).

<ExportLogsViaApiScript />

<Formbricks />
