MeshAccessLog

Returns MeshAccessLog entity

Changed on
get/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshaccesslogs/{name}

Request

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

Path parameters

cpId, string uuid required

Id of the Konnect resource

mesh, string required

name of the mesh

name, string required

name of the MeshAccessLog

Response

Successful response

MeshAccessLogItem required

MeshAccessLog configures access logging for traffic between services in the mesh. It allows you to capture and export request/response logs to various backends (file, TCP, or OpenTelemetry) for monitoring, debugging, and auditing purposes.

type, 'MeshAccessLog' required

the type of the resource

mesh, string

Mesh is the name of the Kuma mesh this resource belongs to. It may be omitted for cluster-scoped resources.

kri, string

A unique identifier for this resource instance used by internal tooling and integrations. Typically derived from resource attributes and may be used for cross-references or indexing

name, string required

Name of the Kuma resource

labels, object

The labels to help identity resources

spec, object required

Spec is the specification of the Kuma MeshAccessLog resource.

creationTime, string date-time

Time at which the resource was created

modificationTime, string date-time

Time at which the resource was updated

status, object

Status is the current status of the Kuma MeshAccessLog resource.

Example response

{
  "kri": "kri_mal_default_zone-east_kuma-demo_mypolicy1_",
  "spec": {
    "rules": [
      {
        "default": {
          "backends": [
            {
              "file": {
                "format": {
                  "json": [
                    {
                      "key": "start_time",
                      "value": "%START_TIME%"
                    },
                    {
                      "key": "bytes_received",
                      "value": "%BYTES_RECEIVED%"
                    }
                  ],
                  "plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
                },
                "path": "/tmp/access.log"
              },
              "openTelemetry": {
                "attributes": [
                  {
                    "key": "mesh",
                    "value": "%KUMA_MESH%"
                  }
                ],
                "body": {
                  "kvlistValue": {
                    "values": [
                      {
                        "key": "mesh",
                        "value": {
                          "stringValue": "%KUMA_MESH%"
                        }
                      }
                    ]
                  }
                }
              },
              "tcp": {
                "address": "127.0.0.1:5000",
                "format": {
                  "json": [
                    {
                      "key": "start_time",
                      "value": "%START_TIME%"
                    },
                    {
                      "key": "bytes_received",
                      "value": "%BYTES_RECEIVED%"
                    }
                  ],
                  "plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
                }
              }
            }
          ]
        }
      }
    ],
    "to": [
      {
        "default": {
          "backends": [
            {
              "file": {
                "format": {
                  "json": [
                    {
                      "key": "start_time",
                      "value": "%START_TIME%"
                    },
                    {
                      "key": "bytes_received",
                      "value": "%BYTES_RECEIVED%"
                    }
                  ],
                  "plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
                },
                "path": "/tmp/access.log"
              },
              "openTelemetry": {
                "attributes": [
                  {
                    "key": "mesh",
                    "value": "%KUMA_MESH%"
                  }
                ],
                "body": {
                  "kvlistValue": {
                    "values": [
                      {
                        "key": "mesh",
                        "value": {
                          "stringValue": "%KUMA_MESH%"
                        }
                      }
                    ]
                  }
                }
              },
              "tcp": {
                "address": "127.0.0.1:5000",
                "format": {
                  "json": [
                    {
                      "key": "start_time",
                      "value": "%START_TIME%"
                    },
                    {
                      "key": "bytes_received",
                      "value": "%BYTES_RECEIVED%"
                    }
                  ],
                  "plain": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%"
                }
              }
            }
          ]
        }
      }
    ]
  },
  "creationTime": "1901-01-01T00:00:00.000Z",
  "modificationTime": "1901-01-01T00:00:00.000Z"
}

Changes