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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...