Trino API to get query history

1.8k Views Asked by At

Is there any way to get all the query history that is executed in trino?

I need an API or query to get the history of the executed query.

2

There are 2 best solutions below

0
On BEST ANSWER

https://trino.io/docs/current/connector/system.html#runtime-queries

show columns from system.runtime.queries;
select * from system.runtime.queries;
0
On
https://<Trino_IP>/ui/api/query