---
title: "Konnect Audit Log Settings"
url: "https://nov18-dev.movespot.fyi/apis/konnect-audit-log-settings-internal-2/versions/41703cf0-d404-4948-a8b7-cb49d97fcaee"
---

# Konnect Audit Log Settings

OpenAPI specification document.

```json
{"openapi":"3.0.2","info":{"title":"Konnect Audit Log Settings","version":"2.0.0","description":"The API for configuring Kong Konnect Audit Logs.","contact":{"name":"Kong","url":"https://konghq.com"}},"servers":[{"url":"https://us.api.konghq.com/v2","description":"United-States Production region"},{"url":"https://eu.api.konghq.com/v2","description":"Europe Production region"},{"url":"https://au.api.konghq.com/v2","description":"Australia Production region"},{"url":"https://me.api.konghq.com/v2","description":"Middle-East Production region"},{"url":"https://in.api.konghq.com/v2","description":"India Production region"},{"url":"https://sg.api.konghq.com/v2","description":"Singapore Production region"}],"paths":{"/internal/logstreams":{"post":{"operationId":"create-authn-failure-audit-logs","summary":"Create Authentication failure logs","description":"This webhook endpoint Creates login failure audit logs using log stream sent by external vendor services (Currently Auth0).","requestBody":{"$ref":"#/components/requestBodies/AuthFailureLogs"},"responses":{"204":{"description":"No Content"},"403":{"$ref":"#/components/responses/Forbidden"}},"tags":["Audit Logs"]}}},"components":{"schemas":{"StreamLog":{"description":"Auth Failure Log Stream Schema","type":"object","properties":{"data":{"description":"Log data","type":"object","properties":{"user_id":{"description":"Auth0 user ID","type":"string"},"date":{"description":"Date when the log is created","type":"string","format":"date-time","readOnly":true},"ip":{"description":"IP address of the client which failed to authenticate","type":"string"},"type":{"description":"Type of authentication failure","type":"string"},"user_agent":{"description":"User Agent of client which failed to authenticate","type":"string"}}}},"title":"StreamLog"},"BaseError":{"description":"standard error","type":"object","properties":{"status":{"description":"The HTTP status code of the error. Useful when passing the response\nbody to child properties in a frontend UI. Must be returned as an integer.\n","type":"integer","readOnly":true},"title":{"description":"A short, human-readable summary of the problem. It should not\nchange between occurences of a problem, except for localization.\nShould be provided as \"Sentence case\" for direct use in the UI.\n","type":"string","readOnly":true},"type":{"description":"The error type.","type":"string","readOnly":true},"instance":{"description":"Used to return the correlation ID back to the user, in the format\nkong:trace:<correlation_id>. This helps us find the relevant logs\nwhen a customer reports an issue.\n","type":"string","readOnly":true},"detail":{"description":"A human readable explanation specific to this occurence of the problem.\nThis field may contain request/entity data to help the user understand\nwhat went wrong. Enclose variable values in square brackets. Should be\nprovided as \"Sentence case\" for direct use in the UI.\n","type":"string","readOnly":true}},"required":["status","title","instance","detail"],"title":"Error"},"ForbiddenError":{"allOf":[{"$ref":"#/components/schemas/BaseError"},{"type":"object","properties":{"status":{"example":403},"title":{"example":"Forbidden"},"type":{"example":"https://httpstatuses.com/403"},"instance":{"example":"kong:trace:1234567890"},"detail":{"example":"Forbidden"}}}]}},"examples":{"Auth-Failure-Logs":{"value":{"logs":[{"data":{"user_id":"auth0|1234","date":"2024-09-03T04:23:06.115Z","ip":"127.0.0.1","type":"fp","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"}}]}},"ForbiddenExample":{"value":{"status":403,"title":"Forbidden","instance":"kong:trace:2723154947768991354","detail":"You do not have permission to perform this action"}}},"requestBodies":{"AuthFailureLogs":{"description":"The request schema to create authentication failure audit logs.","content":{"application/json":{"schema":{"type":"object","properties":{"logs":{"type":"array","items":{"$ref":"#/components/schemas/StreamLog"}}}},"examples":{"Auth-Failure-Logs":{"$ref":"#/components/examples/Auth-Failure-Logs"}}}}}},"responses":{"Forbidden":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"},"examples":{"UnauthorizedExample":{"$ref":"#/components/examples/ForbiddenExample"}}}}}},"securitySchemes":{"personalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Token","description":"The personal access token is meant to be used as an alternative to basic-auth when accessing Konnect via APIs.\nYou can generate a Personal Access Token (PAT) from the [personal access token page](https://cloud.konghq.com/global/account/tokens/) in the Konnect dashboard.\nThe PAT token must be passed in the header of a request, for example:\n`curl -X GET 'https://global.api.konghq.com/v2/users/' --header 'Authorization: Bearer kpat_xgfT...'`\n"},"systemAccountAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Token","description":"The system account access token is meant for automations and integrations that are not directly associated with a human identity.\nYou can generate a system account Access Token by creating a system account and then obtaining a system account access token for that account.\nThe access token must be passed in the header of a request, for example:\n`curl -X GET 'https://global.api.konghq.com/v2/users/' --header 'Authorization: Bearer spat_i2Ej...'`\n"}}},"tags":[{"name":"Audit Logs"}],"security":[{"personalAccessToken":[]},{"systemAccountAccessToken":[]}]}
```
