Service Logs
GET
/api/services/{service_id}/logs
const url = 'https://kelpie.example.com/api/services/example/logs?tail=200×tamps=true';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://kelpie.example.com/api/services/example/logs?tail=200×tamps=true'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”service_id
required
Service Id
string
Query Parameters
Section titled “Query Parameters”tail
Tail
integer
timestamps
Timestamps
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
LogLines
object
lines
required
Lines
Array<string>
Example generated
{ "lines": [ "example" ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}