logs.get


Description

Returns the logs for a given server.


Code Examples

curl -X GET 'https://api.rivet.gg/games/{game_id}/environments/{environment_id}/servers/{server_id}/logs'

Request Parameters

game_id

required path parameter

environment_id

required path parameter

server_id

required path parameter

stream

required query parameter

watch_index

optional query parameter

A query parameter denoting the requests watch index.


Response Body

  • lines
    array of strings

    Sorted old to new.

  • timestamps
    array of strings

    Sorted old to new.

  • watch
    object

    Provided by watchable endpoints used in blocking loops.

    • watch.index
      string

      Index indicating the version of the data responded. Pass this to WatchQuery to block and wait for the next response.