Api to find the long running query

Can someone help me with an api to get the long-running query?
It is very difficult to read the log as it is huge in gigs and filled with all the queries.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.