Getting Data In

Query format for viewing server name with count on respect of color

sushil_sh
Engager

Hi Team,

 

I am very new in Splunk and i need your help to change my query as per requirement  

 

Please validate my syantax  as per requirement How do we get list of server name with count(which is change color like grey or Uninitialized) instead of count of server (server name comes under ServerName)

 

Please find my syntax and result

 

sourcetype=ABC Category IN ("Support","Patch") HealthValue IN(Grey, Uninitialized,) | bin _time span=1d | dedup ServerName HealthValue _time | timechart count(ServerName) as "QTY Servers" by HealthValue

 

 

sushil_sh_0-1627731180493.png

i am waiting for quick response

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
sourcetype=ABC Category IN ("Support","Patch") HealthValue IN(Grey, Uninitialized,) | bin _time span=1d | stats count by ServerName HealthValue _time

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
sourcetype=ABC Category IN ("Support","Patch") HealthValue IN(Grey, Uninitialized,) | bin _time span=1d | dedup ServerName HealthValue _time | stats values(ServerName) as "Servers" by HealthValue _time
0 Karma

sushil_sh
Engager

Thanks for your response

@ITWhisperer  how do we get clour cout on the refference of server name

 

Eg:- suppose  one server change color 3 time in time _time then how do i express  this query in syntax

like below

ServerColourCount Time
xyzGrey31:00

 

Thanks in advance

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
sourcetype=ABC Category IN ("Support","Patch") HealthValue IN(Grey, Uninitialized,) | bin _time span=1d | stats count by ServerName HealthValue _time
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

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, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...