Splunk Search

Dashboard

uagraw01
Motivator

 

 As Per below screenshot, i getting results the difference between last week host and this week host count. But i want list of the difference servers in splunk search. How can i retreive the list of all 23 servers which arr having diffrence from last week count to this week count.

 

 

IMG_20201105_162111.jpg

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try using

| stats dc(host) as Total_host, values(host) as Hosts by Week_Status

You'll also need to modify the stats commands that follow so they don't discard the Hosts field.

The last two lines of the query should be deleted because they add no value.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Try using

| stats dc(host) as Total_host, values(host) as Hosts by Week_Status

You'll also need to modify the stats commands that follow so they don't discard the Hosts field.

The last two lines of the query should be deleted because they add no value.

---
If this reply helps you, Karma would be appreciated.

uagraw01
Motivator

Yes, i get the solution. Thanks for the help

0 Karma
Get Updates on the Splunk Community!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...