Splunk Search

Compare several fields from 2 indexes

Luninho
Explorer

I have two indexes: INDEX1 and INDEX2. In these indexes have the same fields: FIELD1, FIELD2, FIELD3 but they can have different values. 

For example:
INDEX1: FIELD1=5, FIELD2=8
INDEX1: FIELD1=5, FIELD2=7

I need to get a table where will be show only fields with different values in different indexes. According the previous example:

|INDEX1|FIELD2=8|
|INDEX2|FIELD2=7|
or something similar

Labels (1)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Which field or fields is/are used to join the two indexes so that a comparison between the other fields in the event can be sensibly made?

0 Karma

Luninho
Explorer

forget to add these fields in question. I use field @"TIMEIN"

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

see the answer here for hints

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 ...