logs.get
Description
Returns the logs for a given server.
Code Examples
Request
GET
https://api.rivet.gg/games/{game_id}/environments/{environment_id}/servers/{server_id}/logscurl -X GET 'https://api.rivet.gg/games/{game_id}/environments/{environment_id}/servers/{server_id}/logs'
Request Parameters
game_id
required path parameterenvironment_id
required path parameterserver_id
required path parameterstream
required query parameterwatch_index
optional query parameterA query parameter denoting the requests watch index.
Response Body
lines
required array<string>Sorted old to new.
lines[*]
stringtimestamps
required array<string>Sorted old to new.
timestamps[*]
stringwatch
required objectProvided by watchable endpoints used in blocking loops.
index
required stringIndex indicating the version of the data responded.
Pass this to WatchQuery to block and wait for the next response.