Splunk Search

How do you find the difference between the following two events?

yko84109
Loves-to-Learn

Hi,

I have two events:

event1: field1="A",field2="ABC",.....,fieldN="12"
event2: field1="B",field2="ABC",.....,fieldN="13"

Is it possible to do a query to find the difference between these events?

I don't know the amount of the fields, I want to compare all event fields and check if there is something different.

How can I do this?

Thanks.

0 Karma

dkeck
Influencer

HI,

have a look at the diff command

https://docs.splunk.com/Documentation/Splunk/7.2.3/SearchReference/Diff

Example 2:

Compare the 9th search results to the 10th.

... | diff position1=9 position2=10
0 Karma

yko84109
Loves-to-Learn

If I have the following query:
index=A source=fileA.csv | append [search index=A source=fileB.csv] | diff ...?

How can I use the diff on this case?

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...