List log entries

projectLogs(input: ProjectLogsInput!): LogQueryResult!

Requires project.logs.read.

Arguments

ArgumentTypeRequired
inputProjectLogsInput!Yes

Input fields

input

ProjectLogsInput

FieldTypeRequiredDescription
projectReferenceString!Yes
startStringNo
endStringNo
cursorStringNo
limitIntNo
sortOrderLogSortOrderNoSort order by timestamp. Defaults to desc, newest first.
levelLogLevelNo
searchStringNo
serviceStringNoveryfront-server, veryfront-api or veryfront-proxy.
traceIdStringNo
requestIdStringNo
runIdStringNo
environmentStringNo
hostStringNo
releaseIdStringNo

Response

Returns LogQueryResult!. Open the type for its fields and nested types.

FieldTypeDescription
data[LogEntry!]!Log entries in (timestamp, tie key) order. A page can hold fewer entries than limit, or none, and still have pageInfo.hasNextPage; pass pageInfo.endCursor as cursor to continue.
pageInfoPageInfo!endCursor is the cursor for the next page; it is null only when every entry was returned.
statsLogQueryStats!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query ProjectLogs($input: ProjectLogsInput!) {
  projectLogs(input: $input) {
    data {
      traceId
      runId
      environment
      host
      level
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
    stats {
      bytesProcessed
      linesProcessed
      queryTimeMs
    }
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001"
  }
}