Knowledge Management

Calc field

keyu921
Explorer

I want to perform calc on following

Number of disable account
Region Disable Acc
HK Yes AA
HK No BA

US No AA
UK No DA

eval(if region="*") stat count?

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

If I understand the question, this may help.

... | stats count(eval(Disable=="Yes")) as Disabled
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If I understand the question, this may help.

... | stats count(eval(Disable=="Yes")) as Disabled
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...