Hi Splunk team,
I am trying to run a command below, I need my end output as dc(totalCustomers) and dc(Customers_520Error)
index=*** event=test |
stats dc(customerId) as totalCustomers|
eval errortype=case(errorCode="520","error_520") |
chart dc(customerId) over errorType
index=yours event=test errorCode=520
| stats count by customerId
| eventstats dc(customerId) as totalCustomers
your code:
index=*** event=test
|stats dc(customerId) as totalCustomers
|eval errortype=case(errorCode="520","error_520")
|chart dc(customerId) over errorType
errorCode="520"
,try searching first.eval errortype
can't work. After stats
, there is not errorCode fieldchart
has display limit. use stats
at this case.