Navigation

Service Logs

Service logs are created by whenever a user interacts with External Services. The fields present in Service log entries are determined by the service that emitted the log.

MongoDB Atlas is offered as a first-class service within MongoDB Realm. Service log entries have the following form:

{
"arguments": [
{
"collection": <collection>,
"database": <database>,
"query": <query document>,
"limit": {
"$numberInt": <number>
}
}
],
"name": <action>,
"service": "mongodb-atlas"
}
Function Call Location: <location>
Compute Used: <number> bytes•ms
Remote IP Address: <ip address>
SDK: <sdk>>
Platform Version: <version>
Rule Performance Metrics:
{
"database.collection": {
"roles": {
"owner": {
"matching_documents": 5,
"evaluated_fields": 0,
"discarded_fields": 0
}
},
"no_matching_role": 0
}
}
FieldDescription
Remote IP AddressThe IP Address that sent the request to MongoDB Realm. (e.g. 52.21.89.200)
Compute UsedComputational load of the operation.
Platform VersionThe version of the platform that sent the request.
SDK

The SDK used to send the request. Potential values include any SDK. For a browser, this is <browser> <SDK version>.

Beaker IconExample

This request came from the Realm Web SDK version 4.0.0 running on Mozilla Firefox:

SDK: firefox v4.0.0

This request came from the Realm Android SDK version 4.6.0 running on Android Marshmallow:

SDK: android v4.6.0
Function Call LocationThe data center in which the function was executed.
Rule Performance MetricsA summary of the roles, schema, and filters applied to a return value. Provides the number of documents that a role applies to as well as the number of fields in those documents that Realm evaluated and potentially withheld.

Log entries created by unsuccessful operations may feature additional fields for debugging purposes. These include the following:

FieldDescription
ErrorA brief description of an error.
Stack TraceA printout of an exception stack trace.
DetailsExtra information about an execution, including action, reason, service name, and service type.

Webhook log entries adhere to the following form:

Logs:
[
<log line>,
<log line>,
...
]
Function Call Location: <location>
Compute Used: <number> bytes•ms
Remote IP Address: <ip address>
FieldDescription
Remote IP AddressThe IP Address that sent the request to MongoDB Realm. (e.g. 52.21.89.200)
Compute UsedThe computational load of the operation measured in byte-ms.
Function Call LocationThe data center in which the function was executed.
LogsA list of console.log outputs. MongoDB Realm saves the first 256 bytes of the first 10 console.log() calls.

Log entries created by unsuccessful operations may feature additional fields for debugging purposes. These include the following:

FieldDescription
ErrorA brief description of an error.
Stack TraceA printout of an exception stack trace.
DetailsExtra information about an execution, including action, reason, service name, and service type.
Give Feedback