Skip to content
Navigation

Search the default index

Returns matching events, newest first by event time.

GET
/logs

Authorization

  • bearerAuth
    HTTP
    required

Query parameters

  • from
    integer
    required

    Inclusive Unix milliseconds

  • to
    integer
    required

    Exclusive Unix milliseconds

  • source
    optional
    string

    Comma-separated sources. Defaults to every source the token can read.

  • service
    optional
    string

    Exact service

  • logger
    optional
    string

    Exact logger

  • host
    optional
    string

    Exact host

  • message
    optional
    string

    Literal message substring

  • min_level
    optional
    integer

    Minimum numeric severity

  • limit
    optional
    integer

    Page size, 1 to configured maximum

  • cursor
    optional
    string

    next_cursor from the previous page, at most 1024 bytes. Send it with the same index, range, filters and limit; anything else returns 400.

    maxLength: 1024
  • filter
    optional
    unknown

    URL-encoded JSON, at most 4096 bytes decoded. Exact, typed matches on top-level attributes; every condition must match, along with the other filters. Missing and null values never match. Duplicate or unknown members and conflicting conditions return 400. The request path and query together are limited to 32768 bytes.

Returns

200

Successful response

JSON
  • events
    array of
    object
    required
    • id
      string
      required
    • source
      string
      required
    • event_time
      integer
      required
    • received_at
      integer
      required
    • level
      integer
      required
    • message
      string
      required
    • attributes
      object
      required
    • service
      optional
      string | null
    • logger
      optional
      string | null
    • host
      optional
      string | null
    • pid
      optional
      integer | null
  • next_cursor
    string | null
    required

400

Invalid input
JSON
  • error
    string
    required

401

Missing or invalid token
JSON
  • error
    string
    required

403

Source outside read scope
JSON
  • error
    string
    required

413

Payload exceeds configured budget
JSON
  • error
    string
    required

429

Capacity exhausted; Retry-After: 1
JSON
  • error
    string
    required

503

Storage unavailable
JSON
  • error
    string
    required

504

Query deadline expired
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close