Skip to main content
POST
Search logs

Authorizations

Authorization
string
header
required

A workspace API key, created in Superlog under Settings → API keys.

Body

application/json
range
enum<string>
default:1h

How far back from now to read, when since is not given.

Available options:
15m,
1h,
6h,
24h,
7d
since
string<date-time>

Start of the window. Overrides range.

until
string<date-time>

End of the window. Defaults to now. Windows are at most 30 days.

attributes
object[]

Exact matches on log record attributes, such as event.name.

Maximum array length: 20
limit
integer
default:50

Most rows to return.

Required range: 1 <= x <= 500
resourceAttributes
object[]

Filters on resource attributes of the service that sent the data, such as deployment.environment.

Maximum array length: 20

Case-insensitive text in the log body.

Maximum string length: 500
service
string

Only this service.name.

Required string length: 1 - 200
severity
string

A level such as ERROR, WARN, or INFO.

Maximum string length: 40
traceId
string

Only logs written in this trace.

Pattern: ^[0-9a-fA-F]{32}$

Response

OK

logs
object[]
required
since
string
required
until
string
required