Audit log streams is a paid feature.

If you’re using Infisical Cloud, then it is available under the Enterprise Tier. If you’re self-hosting Infisical, then you should contact [email protected] to purchase an enterprise license to use it.

Infisical Audit Log Streaming enables you to transmit your organization’s Audit Logs to external logging providers for monitoring and analysis.

The logs are formatted in JSON, requiring your logging provider to support JSON-based log parsing.

Overview

1

Navigate to Organization Settings in your sidebar.

2

Select Audit Log Streams Tab.

stream create

3

Click on Create

stream create

Provide the following values

Endpoint URL
string
required

The HTTPS endpoint URL of the logging provider that collects the JSON stream.

Headers
string

The HTTP headers for the logging provider for identification and authentication.

stream listt Your Audit Logs are now ready to be streamed.

Example Providers

Better Stack

1

Select Connect Source

better stack connect source

2

Provide a name and select platform

3

Provide Audit Log Stream inputs

better stack connect

  1. Copy the endpoint from Better Stack to the Endpoint URL field.
  2. Create a new header with key Authorization and set the value as Bearer <source token from betterstack>.

Datadog

1

Navigate to API Keys section

api key create

2

Select New Key and provide a key name

api key form api key form

3

Find your Datadog region specific logging endpoint.

datadog url

  1. Navigate to the Datadog Send Logs API documentation.
  2. Pick your Datadog account region.
  3. Obtain your Datadog logging endpoint URL.
4

Provide audit log stream inputs

datadog api key details

  1. Copy the logging endpoint from Datadog to the Endpoint URL field.
  2. Copy the API Key from previous step
  3. Create a new header with key DD-API-KEY and set the value as API Key.