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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...