# Configure logging

{% hint style="info" %}
This step is **optional** and the default behaviour is not to log any request-response pair.
{% endhint %}

Turing currently supports logging request-treatment-response data to BigQuery and Kafka.

## BigQuery

Configure the BigQuery destination. There are 2 required inputs.

![](/files/8YsoLtP4XAL4EImRdnpA)

**BigQuery Table**: Specify the name of the BigQuery Table in the format of `project_name.dataset.table`. If the table does not exist, it will be created automatically at the deployment.

**Service Account**: Choose a service account from the ones provided that has both JobUser and DataEditor privileges and write access to the configured BigQuery dataset.

## Kafka

Select Kafka as the Results Logging Destination and configure the required values.

![](/files/5JjRnMCHh6kDjJxRZBKK)

**Brokers**: A comma-separated list of one or more Kafka brokers

**Topic**: A valid Kafka topic name on the server. The data will be written to this topic.

**Serialization Format**: The message serialization format to be used. This can be JSON or Protobuf. When Protobuf serialization is used, the message published to the topic is of type `TuringResultLogMessage` and the message key is of type `TuringResultLogKey`. When JSON serialization is used, the `TuringResultLogMessage`'s JSON representation is published to the topic. The protocol buffers can be found [here](https://github.com/caraml-dev/turing/blob/main/engines/router/missionctl/log/resultlog/proto/turing/TuringResultLog.proto).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.caraml.dev/user-guides/router/create-a-router/configure-logging-request-response.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
