> For the complete documentation index, see [llms.txt](https://docs.aisera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aisera.com/aisera-platform/adding-data-to-your-tenant/integrations-and-data-sources/connectors/splunk/export-audit-logs-to-splunk.md).

# Export Audit Logs to Splunk

Aisera's Gen AI platform includes the functionality to export audit logs in real-time to Splunk. This feature allows seamless integration of Aisera audit data with existing Security Information and Event Management (SIEM) systems, enhancing security monitoring and compliance.

## Integration Setup

Create the Splunk Integration:

1. Navigate to the **Settings > Integrations** page in the Aisera Admin UI.
2. Click the **+ New Integration** button.
3. Search for and choose the **Splunk** icon.
4. **Name** the integration.
5. Provide the **Splunk HTTP Event Collector (HEC) endpoint.**
6. Click **Next.**
7. Set the **Auth Type** and fill in the parameters. \
   Currently, only the **Basic** authorization type is supported for Splunk.
8. Choose **OK**.

## Data Source Setup

Add the Splunk Data Source:

1. Navigate to **Settings > Data Source** in the Aisera Admin UI.
2. Choose **+ New Data Source.**
3. Search for and select the **Splunk** icon.

<div align="left"><figure><img src="/files/A6Xm9grNUwOLmwA7ce9p" alt="" width="369"><figcaption></figcaption></figure></div>

4. Click **Next.**
5. Create and add a **Name** for your **Splunk** data source.
6. Choose **Forward Events** as the function.

<div align="left"><figure><img src="/files/3Vqnyu2B3ipA73qnrfXw" alt="" width="563"><figcaption></figcaption></figure></div>

4. Choose **Audit History** as the **Data Type**.&#x20;
5. After setting the **Data Type**, choose the name of the **Integration** that you created in the **Integration Setup** above.
6. Enter an optional **Description**.
7. Click **Next.**
8. Ignore the options in the following windows and click **Next.**
9. Click **OK**.

## Event Triggers

**To Set the Event Triggers:**

1. Navigate to **AI Automation > Event Studio** in the Aisera Admin UI.
2. Click the **+ New Event Trigger** button.
3. Add a **Name** for the Trigger.<br>

   <div align="left"><figure><img src="https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2F2983236984-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiZkLJr3EjXkd2tHYiQJP%252Fuploads%252Fo91uUxRTYqLzML2EXP0R%252Frn_16.png%3Falt%3Dmedia%26token%3D6fe66b27-b3ac-425b-83ad-6f20d96c460f&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=ccf352eb&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure></div>
4. Select **Event Forwarder** for the **Event Handler Type.**
5. Click **Next.**
6. Set the **Event Forwarder** options<br>

   <div align="left"><figure><img src="https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2F2983236984-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiZkLJr3EjXkd2tHYiQJP%252Fuploads%252FwYXzorNkHtTUHb79SLh6%252Frn_17.png%3Falt%3Dmedia%26token%3Ddf244e30-c995-4298-9cbf-657227eba437&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=5122c9a7&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure></div>
7. Select **Splunk** as the **External System.**
8. Select your Splunk Data Source as the **Data Sources** option.

<div align="left"><figure><img src="/files/AMYLVaUCnCsigjralaWx" alt="" width="563"><figcaption></figcaption></figure></div>

9. Select **AuditEvent** as the **Event Type**
10. Click **OK**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aisera.com/aisera-platform/adding-data-to-your-tenant/integrations-and-data-sources/connectors/splunk/export-audit-logs-to-splunk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
