Splunk Search

How do you compare multiple related fields in one search?

Marinus
Communicator

I'd like to compare the configuration of several nodes using a single search. Each node has multiple keys expressed as one key value pair per event i.e.

timestamp audit=true
timestamp enabled=true

Is there a way to compare all the keys against each other and report deltas?

I've updated the quested to ensure it's correctly formatted.

Tags (1)

carasso
Splunk Employee
Splunk Employee

Yes, if I understand properly.

Join all events about a single node with a transaction, then each transaction will have all the values.

   ...| transaction some_node_id_field ...

from there, there are many things you can do -- compare particular nodes like this:

 | diff pos1=1 pos2=2 enables

get top combinations...

 | top audit, enables

cluster nodes to similar nodes...

 | cluster
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...