> For the complete documentation index, see [llms.txt](https://docs.lenses.io/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenses.io/latest/user-guide/using/governance/audits.md).

# Audits

Lenses audits all user actions. Audit events can be viewed in Lenses and also sent to two channels, **Splunk** and **Webhook**.

{% hint style="info" %}
Audits can also be written to a file by setting a file path in the **lenses.audit.to.log.file** option in **lenses.conf.** Lenses will then write audit entries to disk as JSON for collection by your log aggregation systems.
{% endhint %}

## Audit Connections

To send audits entries to an external system, you first need to tell each Lenses agent when it can send them to, these are audits connections, defined in the [provisioning file](https://docs.lenses.io/latest/deployment/configuration/agent/automation).

You can integrate and send alerts to:

1. Splunk
2. Webhooks

You can configure the provisioning file by selecting  `Environments & Topics` option from the left sidebar, expand the environment node and select the the `Configuration` node. You can then edit, test and apply the provisioning file againts the connected agent.

## Audit Channels

Once you have audit connections configured, you can then create audit channels. Channels form the link to the connection, you can create multiple channels per connection.

Select the `Environments & Topics` option from the left sidebar, expand the environment node you are interested in and select the  `Admin` then  `Audit Logs` node, this will open the listing of audit events.

Select the channels sub tab so view existing channels. You can either then edit the channel or create a new channel.

### Viewing audit logs in Lenses

Select the `Environments & Topics` option from the left sidebar, expand the environment node you are interested in and select the `Audit logs` node, this will open the listing audit events.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.lenses.io/latest/user-guide/using/governance/audits.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
