Splunk Enterprise

How to get the count by days?

mahesh27
Path Finder

Query:
index=apl-app-grap  sourcetype=grap:apps source=*applications*  host=xxxxxx
|rex field =_raw "\|rank\:(?<Report>.*?)\|"
|eval Pass=if(Report="0", "Pass", null())
|stats count(Pass) as Passed_Count
 output:

Passed_Count
700



But i need the output for day wise, suppose if i select  7 days i should get 7 rows (showing each day count) like shown below:

Passed_Count
100
100
100
100
100
100
100

 

 

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
index=apl-app-grap  sourcetype=grap:apps source=*applications*  host=xxxxxx
|rex field =_raw "\|rank\:(?<Report>.*?)\|"
|eval Pass=if(Report="0", "Pass", null())
|bin span=1d _time
|stats count(Pass) as Passed_Count by _time
0 Karma
Get Updates on the Splunk Community!

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...

Observability Highlights | January 2023 Newsletter

 January 2023New Product Releases Splunk Network Explorer for Infrastructure MonitoringSplunk unveils Network ...

Security Highlights | January 2023 Newsletter

January 2023 Splunk Security Essentials (SSE) 3.7.0 ReleaseThe free Splunk Security Essentials (SSE) 3.7.0 app ...