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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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