Mark Epshtein
08/09/2024, 10:44 AMval count = db.query(
SELECT COUNT(*)
FROM logs
WHERE level = 'ERROR' and
!(k8s.namespace = 'foo' & message CONTAINS 'bar') and
!(k8s.namespace = 'zeliboba' and logger = 'logger_name' and message LIKE '%expected%')
)
if(count > 0 ) slackAlert("<message>")
I understand how to create alerts for simple queries but I do not understand how to write "complex" queries in query builder.
Could you please advice me?Srikanth Chekuri
08/12/2024, 2:45 AMMark Epshtein
08/12/2024, 10:15 AM