Anthony Tote
08/14/2024, 1:23 PMSELECT
attributes_string_value[indexOf(attributes_string_key, 'customer')] AS customer,
formatDateTime(fromUnixTimestamp64Nano(timestamp), '%Y-%m-%d %H:%i') AS timestamp_utc,
attributes_string_value[indexOf(attributes_string_key, 'request')] AS request,
COUNT(*) AS requests
FROM signoz_logs.distributed_logs
WHERE ((attributes_string_value[indexOf(attributes_string_key, 'log.file.name')]) = 'test.log')
AND (request LIKE '%/api/headsup%')
AND (timestamp >= {{.start_timestamp_nano}}
AND timestamp <= {{.end_timestamp_nano}})
GROUP BY
customer,
timestamp_utc,
request
ORDER BY requests DESC
it starts to get slow if we select more than 1 hour of data, and ideally this query can run smoothly for 1 daySrikanth Chekuri
08/14/2024, 5:05 PMSigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.
Powered by