Log record format
The log file is a gzip-compressed JSON+L file with one JSON object per line that represents a single log record entry. Each entry has the following format:
Log entry description
Field |
Description |
|
Fauna API version. |
|
Number of bytes in the request. |
|
Number of bytes in the response. |
|
Number of read operations consumed by this query. |
|
Number of write operations consumed by this query. |
|
Number of compute operations consumed by this query. |
|
Database path of this entry. Each path entry is a database name. The first entry is the top-level database, and each included entry to the right is a child database. Dashboard queries have an empty database value. |
|
Query processing time of this query in milliseconds. |
|
Query Region Group identifier. |
|
HTTP request headers of this entry. |
|
HTTP request method of this entry. |
|
Query HTTP response code. A |
|
List of tags included with the query. Empty |
|
Query W3C-compliant traceparent identifier. If you supplied an identifier and the logs do not include the identifier, you might have supplied an invalid identifier. If you provided an invalid identifier, Fauna generates a valid identifier. |
|
Query processing timestamp in UTC. Example: |
|
Retry count. A value greater than zero indicates contention. |
Example
{
"API_VERSION": "4",
"BYTES_IN": 43,
"BYTES_OUT": 24,
"BYTE_READ_OPS": 16,
"BYTE_WRITE_OPS": 0,
"COMPUTE_OPS": 1,
"DATABASE": [
],
"QUERY_TIME_MS": 2,
"REGION_GROUP": "us-std",
"REQUEST_HEADERS": "{\"user_agent\":\"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0\",\"x_forwarded_for\":\"192.168.001.100, 10.1.0.246\"}",
"REQUEST_METHOD": "POST",
"RESPONSE_CODE": "200",
"TAGS": {
},
"TRACEPARENT": "00-4c0cbd49ac9a456ff1ae224f2c4ef438-1dce59204c26add0-00",
"TS": "2023-02-14 16:15:42.308 Z",
"TXN_RETRIES": 0
}
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!