Skip to content

Commit

Permalink
chore: Add query for CH exceptions (#149)
Browse files Browse the repository at this point in the history
* Add query for CH exceptions

* Fix dates

* Add order by
  • Loading branch information
barberscott authored Aug 29, 2024
1 parent 4dcc06c commit 1d0ae85
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- This query returns all queries to Clickhouse with exceptions
-- from the last 7 days

select *
from clusterAllReplicas(default,system.query_log)
where exception != ''
and event_time >= now() - interval 7 day
and event_date >= toDate(now() - interval 7 day)
and query ilike '-- %'
order by event_time desc

0 comments on commit 1d0ae85

Please sign in to comment.