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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...