Docs are work in progress
Skip to main content

Fetch machine logs data

POST 

/api/v1/machines/:machineIdOrAlias/logs/query

This API endpoint retrieve logs data for the machine identified by the provided machineId or machine alias.Note that logs data is only collected if logs collection is enabled in machine telemetry. Machine logs are records of events and messages generated by the operating system, applications, and services running on a machine.

Request

Path Parameters

    machineIdOrAlias stringrequired

    The machineId - unique id of the machine, alias - machine alias

Body

required

The request body containing the required details to get machine logs

    search string
    start int64

    Timestamp in epoch nanoseconds

    end int64

    Timestamp in epoch nanoseconds

    stream stringrequired
    limit int32

    Possible values: <= 100

Responses

Success response

Schema

    success boolean
    message string
    status string
    statusCode int32
    errorCode string
    subErrors object[]

    payload

    object

    Schema for machine logs response

    status string

    data

    object

    Schema for telemetry machine logs data

    resultType string

    result

    object[]

  • Array [

  • stream

    object

    Schema for telemetry machine logs stream

    exporter string
    machine_id string
    stream_name string
    values array[]
  • ]

Loading...