Skip to content

Read a log line with its context

What you can call today

Every example here runs against api.xovris.ai with a key from your account’s settings. GET /v1/health and GET /v1/public/status answer without one.

GET
/v1/logs/lines/{id}
curl --request GET \  --url https://api.xovris.ai/v1/logs/lines/example \  --header 'Authorization: Bearer <token>'

A token that can read is enough.

id
required
string

Done.

Media typeapplication/json
object
line
required
object
id
required
string
at
required
string
sourceAt
required
One of:
string
receivedAt
required
string
level
required
string
Allowed values: error warn info trace fatal debug
severityText
required
string
raisedFrom
required
One of:
string
Allowed values: error warn info trace fatal debug
body
required
string
pattern
required
object
id
required
string
template
required
string
source
required
object
kind
required
string
Allowed values: email check change otlp envelope agent syslog webhook audit access pasted
id
required
string
name
required
string
service
required
One of:
string
host
required
One of:
string
asset
required
One of:
string
observedByXovris
required
boolean
masked
required
number
attributes
required
object
key
additional properties
string
masks
required
object
masked
required
number
fields
required
Array<object>
object
field
required
string
kind
required
string
Allowed values: email phone private_key jwt aws_key github_token slack_token slack_webhook stripe_key google_key model_key xovris_key auth_header url_password secret_value card_number client_ip iban national_id crypto_wallet
count
required
number
words
required
string
sentence
required
One of:
string
links
required
object
changesBefore
required
string
assetStory
string
traceId
required
One of:
string
spanId
required
One of:
string
incidentId
required
One of:
string
changeRunId
required
One of:
string
around
required
Array<object>
object
id
required
string
at
required
string
sourceAt
required
One of:
string
receivedAt
required
string
level
required
string
Allowed values: error warn info trace fatal debug
severityText
required
string
raisedFrom
required
One of:
string
Allowed values: error warn info trace fatal debug
body
required
string
pattern
required
object
id
required
string
template
required
string
source
required
object
kind
required
string
Allowed values: email check change otlp envelope agent syslog webhook audit access pasted
id
required
string
name
required
string
service
required
One of:
string
host
required
One of:
string
asset
required
One of:
string
observedByXovris
required
boolean
masked
required
number
attributes
required
object
key
additional properties
string
masks
required
object
masked
required
number
fields
required
Array<object>
object
field
required
string
kind
required
string
Allowed values: email phone private_key jwt aws_key github_token slack_token slack_webhook stripe_key google_key model_key xovris_key auth_header url_password secret_value card_number client_ip iban national_id crypto_wallet
count
required
number
words
required
string
sentence
required
One of:
string
links
required
object
changesBefore
required
string
assetStory
string
traceId
required
One of:
string
spanId
required
One of:
string
incidentId
required
One of:
string
changeRunId
required
One of:
string
trace
required
One of:
object
id
required
One of:
string
lines
required
Array<object>
object
id
required
string
at
required
string
sourceAt
required
One of:
string
receivedAt
required
string
level
required
string
Allowed values: error warn info trace fatal debug
severityText
required
string
raisedFrom
required
One of:
string
Allowed values: error warn info trace fatal debug
body
required
string
pattern
required
object
id
required
string
template
required
string
source
required
object
kind
required
string
Allowed values: email check change otlp envelope agent syslog webhook audit access pasted
id
required
string
name
required
string
service
required
One of:
string
host
required
One of:
string
asset
required
One of:
string
observedByXovris
required
boolean
masked
required
number
attributes
required
object
key
additional properties
string
masks
required
object
masked
required
number
fields
required
Array<object>
object
field
required
string
kind
required
string
Allowed values: email phone private_key jwt aws_key github_token slack_token slack_webhook stripe_key google_key model_key xovris_key auth_header url_password secret_value card_number client_ip iban national_id crypto_wallet
count
required
number
words
required
string
sentence
required
One of:
string
links
required
object
changesBefore
required
string
assetStory
string
traceId
required
One of:
string
spanId
required
One of:
string
incidentId
required
One of:
string
changeRunId
required
One of:
string
total
required
number
incident
required
One of:
object
id
required
string
title
required
string
state
required
string
provenCause
required
One of:
string
incidents
required
Array<object>
object
id
required
string
title
required
string
state
required
string
provenCause
required
One of:
string
change
required
One of:
object
id
required
string
action
required
string
state
required
string
incidentId
required
string
deploy
required
One of:
object
lineId
required
string
at
required
string
summary
required
string
actor
required
One of:
string
revision
required
One of:
string
environment
required
One of:
string
asset
required
One of:
object
ref
required
string
story
required
string

Example

{  "line": {    "id": "string",    "at": "string",    "sourceAt": "string",    "receivedAt": "string",    "level": "error",    "severityText": "string",    "raisedFrom": "error",    "body": "string",    "pattern": {      "id": "string",      "template": "string"    },    "source": {      "kind": "email",      "id": "string",      "name": "string"    },    "service": "string",    "host": "string",    "asset": "string",    "observedByXovris": true,    "masked": 1,    "attributes": {},    "masks": {      "masked": 1,      "fields": [        {          "field": "string",          "kind": "email",          "count": 1,          "words": "string"        }      ],      "sentence": "string"    },    "links": {      "changesBefore": "string",      "assetStory": "string",      "traceId": "string",      "spanId": "string",      "incidentId": "string",      "changeRunId": "string"    }  },  "around": [    {      "id": "string",      "at": "string",      "sourceAt": "string",      "receivedAt": "string",      "level": "error",      "severityText": "string",      "raisedFrom": "error",      "body": "string",      "pattern": {        "id": "string",        "template": "string"      },      "source": {        "kind": "email",        "id": "string",        "name": "string"      },      "service": "string",      "host": "string",      "asset": "string",      "observedByXovris": true,      "masked": 1,      "attributes": {},      "masks": {        "masked": 1,        "fields": [          {            "field": "string",            "kind": "email",            "count": 1,            "words": "string"          }        ],        "sentence": "string"      },      "links": {        "changesBefore": "string",        "assetStory": "string",        "traceId": "string",        "spanId": "string",        "incidentId": "string",        "changeRunId": "string"      }    }  ],  "trace": {    "id": "string",    "lines": [      {        "id": "string",        "at": "string",        "sourceAt": "string",        "receivedAt": "string",        "level": "error",        "severityText": "string",        "raisedFrom": "error",        "body": "string",        "pattern": {          "id": "string",          "template": "string"        },        "source": {          "kind": "email",          "id": "string",          "name": "string"        },        "service": "string",        "host": "string",        "asset": "string",        "observedByXovris": true,        "masked": 1,        "attributes": {},        "masks": {          "masked": 1,          "fields": [            {              "field": "string",              "kind": "email",              "count": 1,              "words": "string"            }          ],          "sentence": "string"        },        "links": {          "changesBefore": "string",          "assetStory": "string",          "traceId": "string",          "spanId": "string",          "incidentId": "string",          "changeRunId": "string"        }      }    ],    "total": 1  },  "incident": {    "id": "string",    "title": "string",    "state": "string",    "provenCause": "string"  },  "incidents": [    {      "id": "string",      "title": "string",      "state": "string",      "provenCause": "string"    }  ],  "change": {    "id": "string",    "action": "string",    "state": "string",    "incidentId": "string"  },  "deploy": {    "lineId": "string",    "at": "string",    "summary": "string",    "actor": "string",    "revision": "string",    "environment": "string"  },  "asset": {    "ref": "string",    "story": "string"  }}

Not signed in: the token is missing, expired or revoked. The answer says how to get a new one.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Signed in, but this token or role may not do this. The answer names the permission it needs.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Nothing with that id here, or it belongs to another workspace. Nothing was changed.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Any other refusal or failure. The answer says what happened and what to do next.

Media typeapplication/json
object
error
required
object
code
required

A stable code a program can branch on.

string
message
required

What happened, in plain words.

string
nextStep
required

What to do next.

string
decisionId

The recorded authorisation decision, when a role refused it.

string

Example generated

{  "error": {    "code": "example",    "message": "example",    "nextStep": "example",    "decisionId": "example"  }}

Ask Xovris

Open the full page

Your data is never used to train our AI. How your data is kept

A problem is called fixed only once it works again. How each fix is checked

XOVRIS LTD, registered in England and Wales, company number 17499910. Registered office: 66 Paul Street, London EC2A 4NA.