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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...