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 answers

0
Dyno Fu 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
alakmar Shafin On
https://<Trino_IP>/ui/api/query