Splunk Search

How to edit my search to display the current count and the count from 5 minutes ago in one line?

RICKZHANG
Engager

Hi

Now I need to show the current count and the count five minutes ago in one row. The current count search is:

 index=app   host="xxxx"   sourcetype=xxx    status>399   route =*   earliest=-15m@m latest=@m| bucket span=5m _time
 | stats count as current_count by _time route

And the respected result is like this:
alt text
How can I do it?

0 Karma

somesoni2
Revered Legend

Try this

index=app host="xxxx" sourcetype=xxx status>399 route =* earliest=-15m@m latest=@m| bucket span=5m _time
| stats count as current_count by _time route | streamstats current=f window=1 values(current_count) as previous_count  by route
0 Karma
Get Updates on the Splunk Community!

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...

Unlock Instant Security Insights from Amazon S3 with Splunk Cloud — Try Federated ...

Availability: Must be on Splunk Cloud Platform version 10.1.2507.x to view the free trial banner. If you are ...