---
title: "Returns a list of MeshAccessLog in the mesh."
method: GET
path: "/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshaccesslogs"
tags: ["MeshAccessLog"]
---

# Returns a list of MeshAccessLog in the mesh.

`GET /v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshaccesslogs`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshaccesslogs`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `cpId` string, uuid, required
- `mesh` string, required

## Query parameters

- `offset` integer
- `size` integer
- `filter` object
  - `key` string
  - `value` string

## Response `200`

List

- object
  - `items` MeshAccessLogItem[], required
    - `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.
      - `rules` object[]: Rules defines inbound access log configurations.
        - `default` object, required: Default contains configuration of the inbound access logging
          - `backends` object[]
            - `file` object: FileBackend defines configuration for file based access logs
              - …
            - `openTelemetry` object: Defines an OpenTelemetry logging backend.
              - …
            - `tcp` object: TCPBackend defines a TCP logging backend.
              - …
            - `type` 'Tcp' | 'File' | 'OpenTelemetry', required
        - `matches` object[]: Matches defines a list of conditions (by SpiffeID or SNI) that select the traffic this rule applies to. Rules fire independently: a connection that satisfies multiple rules is logged to every matching rule's backends.
          - `sni` object: SNI defines a matcher configuration for matching by SNI value carried on the TLS connection
            - `type` 'Exact', required: Type defines how to match traffic by SNI. Only `Exact` is supported.
            - `value` string, required: Value is the SNI carried on the TLS connection that needs to match for the configuration to be applied
          - `spiffeID` object: SpiffeID defines a matcher configuration for SpiffeID matching
            - `type` 'Exact' | 'Prefix', required: Type defines how to match incoming traffic by SpiffeID. `Exact` or `Prefix` are allowed.
            - `value` string, required: Value is SpiffeID of a client that needs to match for the configuration to be applied
      - `targetRef` object: TargetRef is a reference to the resource the policy takes an effect on. The resource could be either a real store object or virtual resource defined in-place.
        - `kind` 'Mesh' | 'Dataplane', required: Kind of the referenced resource
        - `labels` object: Labels are used to select referenced real resources and to carry legacy service identity when a common TargetRef must still target old service-tag based paths.
        - `sectionName` string: SectionName is used to target specific section of resource. For example, you can target port from MeshService.ports[] by its name. Only traffic to this port will be affected.
      - `to` object[]: To list makes a match between the consumed services and corresponding configurations
        - `default` object, required: Default is a configuration specific to the group of destinations referenced in 'targetRef'
          - `backends` object[]
            - `file` object: FileBackend defines configuration for file based access logs
              - …
            - `openTelemetry` object: Defines an OpenTelemetry logging backend.
              - …
            - `tcp` object: TCPBackend defines a TCP logging backend.
              - …
            - `type` 'Tcp' | 'File' | 'OpenTelemetry', required
        - `targetRef` object, required: TargetRef is a reference to the resource that represents a group of destinations.
          - `kind` 'Mesh' | 'MeshService' | 'MeshExternalService' | 'MeshMultiZoneService' | 'MeshHTTPRoute', required: Kind of the referenced resource
          - `labels` object: Labels are used to select referenced real resources and to carry legacy service identity when a common TargetRef must still target old service-tag based paths.
          - `sectionName` string: SectionName is used to target specific section of resource. For example, you can target port from MeshService.ports[] by its name. Only traffic to this port will be affected.
    - `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.
      - `conditions` object[]
        - `message` string, required: message is a human readable message indicating details about the transition. This may be an empty string.
        - `reason` string, required: reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
        - `status` 'True' | 'False' | 'Unknown', required: status of the condition, one of True, False, Unknown.
        - `type` string, required: type of condition in CamelCase or in foo.example.com/CamelCase.
  - `total` number, required: The total number of entities
  - `next` string, nullable, required: URL to the next page, or null when this is the last page

## Changes

- **2026-12-03** `9c8d300657bd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-beta/changes/v3/mesh/control-planes/:cpId/meshes/:mesh/meshaccesslogs/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-beta.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/9c8d300657bd?raw)
