---
title: "LogSearchRequest"
url: "https://nov18-dev.movespot.fyi/apis/konnect-dolly-apis-dev-1/versions/4ba55f2d-e3a2-486c-a018-16faa4e1afe4/schemas/LogSearchRequest"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-dolly-apis-dev-1/versions/4ba55f2d-e3a2-486c-a018-16faa4e1afe4.md

# LogSearchRequest

Represents the request payload for searching logs in a debug session.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Konnect Dolly APIs
  version: 1.0.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    AttributesFilter:
      description: Key-value pairs to filter logs based on specific attributes.
      type: object
      properties:
        log_type:
          $ref: "#/components/schemas/KeyValueFilter"
        introspection_name:
          $ref: "#/components/schemas/KeyValueFilter"
        introspection_namewhat:
          $ref: "#/components/schemas/KeyValueFilter"
        introspection_source:
          $ref: "#/components/schemas/KeyValueFilter"
        plugin_name:
          $ref: "#/components/schemas/KeyValueFilter"
        plugin_id:
          $ref: "#/components/schemas/KeyValueFilter"
        request_id:
          $ref: "#/components/schemas/KeyValueFilter"
      additionalProperties: false
    LogsOrderBy:
      description: Specifies the sorting order for the logs in the response.
      type: object
      properties:
        field:
          description: The field to sort by. Can be either `timestamp` or `severity_number`.
          type: string
          enum:
            - timestamp
            - severity_number
        direction:
          description: The sorting direction. Can be `asc` for ascending or `desc` for
            descending order.
          type: string
          enum:
            - asc
            - desc
    KeyValueFilter:
      description: Represents a filter for key-value pairs, allowing equality,
        inequality, inclusion, or exclusion conditions.
      type: object
      properties:
        eq:
          description: Specifies a value that the key must be equal to.
        neq:
          description: Specifies a value that the key must not be equal to.
        in:
          description: Specifies a list of values that the key must be included in.
          type: array
          items: {}
        nin:
          description: Specifies a list of values that the key must not be included in.
          type: array
          items: {}
      example:
        in:
          - prod
          - 123
          - true
      additionalProperties: false
    LogSearchRequest:
      description: Represents the request payload for searching logs in a debug session.
      type: object
      properties:
        start:
          description: The start time for the log search query. Must be in RFC-3339 format.
          type: string
          format: date-time
        end:
          description: The end time for the log search query. Must be in RFC-3339 format.
          type: string
          format: date-time
        node_id:
          description: A list of data plane node IDs to filter logs.
          type: array
          items:
            type: string
            uniqueItems: true
            format: uuid
        span_id:
          description: A list of identifier of the span within a trace to filter logs.
          type: array
          items:
            type: string
            uniqueItems: true
        trace_id:
          description: A list of identifier of the trace to filter logs.
          type: array
          items:
            type: string
            uniqueItems: true
        severity_text:
          description: A list of severity levels to filter logs (e.g., ERROR, WARN).
          type: array
          items:
            type: string
            uniqueItems: true
        severity_number:
          description: A list of numeric severity levels to filter logs (e.g., 17 for
            ERROR, 15 for WARN).
          type: array
          items:
            type: integer
            uniqueItems: true
        attributes:
          $ref: "#/components/schemas/AttributesFilter"
        order_by:
          $ref: "#/components/schemas/LogsOrderBy"
```
