Search…
Logs

Log object

_id ObjectId
Log object instance identifier
org ObjectId
Org identifier
req ObjectId
Request identifier
pid ObjectId
Principal Identifier - The principal is the authenticated entity that issued the request
oid ObjectId
Original Principal Identifier - The original principal is the authenticated entity that issued the first request. The "run as" argument of scripts could make the pid different from oid.
beg Date
Start date of this log instance
end Date
End date of this log instance
sts Number
HTTP status code (like 2xx, 3xx, 4xx)
src Number
logger: 0 api: 1 script: 2 request: 3 audit: 4 deployment: 5 export: 6
lvl Number
error: 0 warn: 1 info: 2 debug: 3 trace: 4
trc Document
Stack trace (file, line number, function)
err Document
Error details (error name, message, reason, faults, etc)
in Number
Total bytes in
out Number
Total bytes out
sid ObjectId
Script identifier
stp String
Script type (like "route", "trigger", etc)
ops Number
Number of operations used in the script
ctt Number
Total number of HTTP callouts used in the script
cms Number
Total milliseconds of HTTP callouts in the script
adr Number
Source IP address
mtd Number
Request method GET: 0 POST: 1 PUT: 2 DELETE: 3 HEAD: 4 OPTIONS: 5 PATCH: 6
url String
Request URL path
que Any
Request query params
rte String
API route
aid ObjectId
App ID
cid ObjectId
App client ID
ses String
Session ID
lid ObjectId
Location ID
dat Any
Any data passed in via the Logger
op Number
Operation Code set: 1 remove: 2 // remove a property value push: 3 pull: 4 delete: 5 // delete an instance auth: 6 // authentication event transfer: 7 // ownership transfer device: 8 // new device registered for account access: 9 // instance access granted/removed
ctx ObjectId
Context ID
obj String
Object Name
ads Number
Audit Source request: 1 script: 2 system: 3
acs Number
Natural Access
grt Number
Granted Access
pts String
Updated Paths
pis ObjectId
Updated Property Identifiers
dpl ObjectId
Deployment Identifier
1
{
2
"_id": "59433e6a8cb4760100c7216e",
3
"adr": 1187315762,
4
"aid": "5810f6e4cc761537539d3e2c",
5
"beg": "2017-06-16T02:11:54.702Z",
6
"cid": "5810f6e4cc761537539d3e2d",
7
"end": "2017-06-16T02:11:55.199Z",
8
"err": {
9
"faults": []
10
},
11
"in": 417,
12
"lvl": 2,
13
"mtd": 0,
14
"out": 525,
15
"pis": [],
16
"pts": [],
17
"que": {
18
"c_public_user": "593b2a2f9a8ca001000f0435",
19
"c_study": "58faa94410cc4501001fe779"
20
},
21
"req": "59433e6a81ae9d0100e9fca7",
22
"rte": "/routes/get_public_group*",
23
"src": 3,
24
"sts": 200,
25
"trc": [],
26
"url": "/routes/get_public_group"
27
}
Copied!
get
https://api.dev.medable.com/
your_org_name/v2/logs
List
1
$.ajax({
2
url: "https://api.dev.medable.com/example/v2/logs",
3
method: "GET",
4
dataType : "json",
5
xhrFields: {
6
withCredentials: true
7
},
8
headers: {
9
"Medable-Client-Key": "GsAqlhnIMzrDeD8V2MBQWq"
10
}
11
}).done(function(data) {
12
// ...
13
});
Copied!
Last modified 1mo ago
Copy link