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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...