Audit Logs

Create Audit Log Destination

Changed on

Creates a configuration for the audit log destination.

post/v2/audit-log-destinations

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Request body

object required
name, string required

The name of the audit log destination.

endpoint, string required

The endpoint that will receive audit log messages.

authorization, string required

The value to include in the Authorization header when sending audit logs to the webhook.

log_format, 'cef' | 'json' | 'cps' required

The output format of each log messages.

skip_ssl_verification, boolean

Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.

Example request

{
  "name": "My Destination",
  "endpoint": "https://example.com/audit-logs",
  "authorization": "Bearer sometoken"
}

Response

Audit log destination response

AuditLogDestination required

Audit Log Destination Schema

id, string uuid

The unique ID of the audit log destination.

name, string nullable

The name of the audit log destination.

endpoint, string nullable

The endpoint that will receive audit log messages.

log_format, 'cef' | 'json' | 'cps'

The output format of each log messages.

skip_ssl_verification, boolean

Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.

created_at, string date-time

Timestamp when this webhook was created.

updated_at, string date-time

Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.

Example response

{
  "endpoint": "https://example.com/audit-logs"
}

Changes

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status