> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ryft.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Trino

> Connect Trino to Ryft by configuring the HTTP event listener on your coordinator, for full query visibility and usage-based optimizations.

### Get your Ryft Ingest Token

Ryft will provide a unique ingest token for your Trino instance. This token is required to authenticate the HTTP event listener that sends query information to Ryft.

### Configure Trino event listener

1. To integrate Trino query information to Ryft, you will need to configure an HTTP event listener.
   On your Trino coordinator node, edit the config file of your event listeners. By default it is in `/etc/trino/event-listener.properties`. The required content of the file should look like the following:

```bash{5} theme={null}
### HTTP
event-listener.name=http
http-event-listener.log-completed=true
http-event-listener.connect-ingest-uri=https://ingest.ryft.io/ingest/trino/queries
http-event-listener.connect-http-headers=x-ryft-token:<RYFT_INGEST_TOKEN>
```

Make sure `http-event-listener.log-completed` is set to true, and to replace `<RYFT_INGEST_TOKEN>` with the one provided by Ryft.

2. Restart the coordinator node to apply changes.

<Note>Make sure outbound connectivity is enabled to `ingest.ryft.io` on port `443` (HTTPS) for the HTTP event listener to work correctly.</Note>
