Monitoring Splunk

How to combine two different outputs of single field ?

Richy_s
Path Finder

 I have a splunk query that does some comparisons and the output is as follows.  If any of the row below for the given hostname has "OK", that host should be marked as "OK" ( irrespective of IP addresses it has).  can you help me with the right query pls ?

 

HostnameIP_Addressmatch
esx241.14.40.1missing
esx241.14.20.1ok
ctx-011.9.2.4missing
ctx-011.2.1.5missing
ctx-011.2.5.26missing
ctx-011.2.1.27missing
ctx-011.1.5.7ok
ctx-011.2.3.1missing
ctx-011.2.6.1missing
ctx-011.2.1.1missing
w1221.2.5.15ok
Labels (1)
Tags (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| eventstats values(eval(if(match="ok",match,null()))) as match by Hostname

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| eventstats values(eval(if(match="ok",match,null()))) as match by Hostname

Richy_s
Path Finder

Exactly what I was looking for, thank you so much !! @ITWhisperer 

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...