Skip to content
No results found.

List Logs

Query over every log generated by PlusAuth belongs to your tenant.

DateMath Reference
:

If you are used to ElasticSearch, Kibana or Grafana date math queries, than you can ignore this section as PlusAuth includes same characteristics with them. The expression starts with an anchor date, which can either be now, or a date string ending with ||. This anchor date can optionally be followed by one or more maths expressions:

  • +1h: Add one hour
  • -1d: Subtract one day
  • /d: Round down to the nearest day The supported units are:
Time UnitDuration
yYears
MMonths
wWeeks
dDays
hHours
HHours
mMinutes
sSeconds

Assuming now is 2001-01-01 12:00:00, some examples are:

ExpressionDescriptionResolves To
now+1hnow in milliseconds plus one hour2001-01-01 13:00:00
now-1hnow in milliseconds minus one hour2001-01-01 11:00:00
now-1h/dnow in milliseconds minus one hour, rounded down to UTC 00:002001-01-01 00:00:00
Scopes
read:log

Query Parameters

from
string

Filter logs occurred after this date. This can be a datetime string or date math expression.

include_api
boolean

Set true to include REST API logs

limit
integer
min-1
max
500

Limit the number of results returned

Examples: 5 

offset
integer
min0
max
99999999999999

Page number of records you wish to skip before selecting records. Final skipped records count would be limit * offset.

operation
string

Retrieve logs belongs to one or more operation. Comma separated. Ex.: authorization.error,create.user

to
string

Filter logs occurred until this date. This can be a datetime string or date math expression.

type
string

Type/s of logs to be retrieved. Comma separated. Comma separated. Ex.: error,warning,info

GET
/logs
cURL
cURLC#DartGoJavaJavaScriptPHPPythonRubyRustSwift
1
2
3
Loading...
Response
200
200
Loading...

Response Body Schema

array<object>