I have to create a base search for a dashboard and I am kinda stuck. Any help would be appreciated.
index=service msg.message="*uri=/v1/payment-options*" eHttpMethodType="GET"
| fields index, msg.springProfile,msg.transactionId,eHttpStatusCode,eHttpMethodType,eClientId,eURI
| dedup msg.transactionId
| rename msg.springProfile as springProfile
| eval profile = case(like(springProfile, "%dev%"), "DEV",
like(springProfile, "%qa%"), "QA",
like(springProfile, "%uat%"), "UAT")
| eval request= case(like(eURI, "%/v1/payment-options%"), "PaymentOptions",
like(eURI, "%/v1/account%"), "AccountTransalation")
| stats
count as "TotalRequests",
count(eval(eHttpStatusCode=201 or eHttpStatusCode=204 or eHttpStatusCode=200)) as "TotalSuccessfulRequests",
count(eval(eHttpStatusCode=400)) as "Total400Faliures",
count(eval(eHttpStatusCode=422)) as "Total422Faliures",
count(eval(eHttpStatusCode=404)) as "Total404Faliures",
count(eval(eHttpStatusCode=500)) as "Total500Faliures", by profile, eClientId
Now that I want to include the stats in the basesearch else my values/events would be truncated. My problem is I need to also count
| stats
count as "TotalRequests",
count(eval(eHttpStatusCode=201 or eHttpStatusCode=204 or eHttpStatusCode=200)) as "TotalSuccessfulRequests"
by request for each of the profile such as Dev, QA,UAT to display in 3 different panels.
How to incorparate this in the above basesearch
... View more