Skip to main content
Infrastructure/Collects

TailQuery

TailQuery streams live log entries from VictoriaLogs tail.

POST/api/v1/collects/query/tail

Operation ID

TailQuery

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • query
    String

    Log query expression to stream live entries from VictoriaLogs

    Example: level=error AND service=payment

Responses

200 OK

Successful response

Content-Type: application/json

Response body root type: object

  • result
    Object

    Log query result returned by the stream

    • fields
      LinkedHashMap

      Field list to include in the response

  • error
    Object

    Error returned when the log query stream fails

    • code
      String

      gRPC status code (e.g. NOT_FOUND, INVALID_ARGUMENT)

      Example: UNAUTHENTICATED

      OK | CANCELLED | UNKNOWN | INVALID_ARGUMENT | DEADLINE_EXCEEDED | NOT_FOUND | ALREADY_EXISTS | PERMISSION_DENIED | RESOURCE_EXHAUSTED | FAILED_PRECONDITION | ABORTED | OUT_OF_RANGE | UNIMPLEMENTED | INTERNAL | UNAVAILABLE | DATA_LOSS | UNAUTHENTICATED

    • message
      String

      Human-readable error message

      Example: invalid or missing token