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

API_VERSION

Fauna API version.

BYTES_IN

Number of bytes in the request.

BYTES_OUT

Number of bytes in the response.

BYTE_READ_OPS

Number of read operations consumed by this query.

BYTE_WRITE_OPS

Number of write operations consumed by this query.

COMPUTE_OPS

Number of compute operations consumed by this query.

DATABASE

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_TIME_MS

Query processing time of this query in milliseconds.

REGION_GROUP

Query Region Group identifier.

REQUEST_HEADERS

HTTP request headers of this entry.

REQUEST_METHOD

HTTP request method of this entry.

RESPONSE_CODE

Query HTTP response code. A 200 code indicates a successful operation. A 201 code indicates that the associated query created a collection.

TAGS

List of tags included with the query. Empty {} indicates that the query includes no tags.

TRACEPARENT

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.

TS

Query processing timestamp in UTC.

Example: "2023-01-18 22:11:39.529 Z"

TXN_RETRIES

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!