Jun 21 2018
11:19 PM
- last edited on
Apr 07 2022
05:12 PM
by
TechCommunityAP
Jun 21 2018
11:19 PM
- last edited on
Apr 07 2022
05:12 PM
by
TechCommunityAP
Jul 20 2018 02:52 AM
SolutionHi
I think probably the easier solution for this is :
let result1 = search in (traces) message : "New Request Received" and timestamp > ago(1d) | summarize count() | extend rank = 1; let result2 = search in (traces) message : "Listing Customers" and timestamp > ago(1d) | summarize count()| extend rank = 2; let result3 = search in (traces) message : "pqr" and timestamp > ago(1d) | summarize count()| extend rank = 3; result1 | union result2, result3 | sort by rank asc
Seems like union does not care on the order of how you stitch results. Probably this is done due to performance reasons.
Jul 20 2018 02:59 AM
Jul 20 2018 03:05 AM
BTW it is good not to use search as this slows down queries. Query like this is better:
traces | where message has "xyz" and timestamp > ago(1d) | summarize count()