Splunk Search

count value per minute and then sum the count per hour

mmdacutanan
Explorer

I have the query that gives me the results I need. I just wanted to ask the gurus out here to look at my SPL and if there is a more efficient way to do it then I'd love to hear it. 😃 Thanks in advance!

Here's the SPL:

index=abc (sourcetype=abc_MainReportLog  "Entered Phone Number" Phone!=1234567890) OR ( sourcetype=abc_core_MainReportLog "\|RemoteApplicationData\|" VH_ICMUUI_CALLVARIABLE3!=1234567890 CV7=*)
| rename CALLVARIABLE3 as Phone
| bucket _time span=1m
| stats dc(CallID) as Count by _time Phone CV7
| where Count >=2
| timechart span=1h sum(Count) as Total
| fillnull value=0
Tags (1)
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, ...