Splunk Search

How to filter out value based from another another column?

villnooB
Explorer

Hi

Greatly appreciate your help, would like to know if there is any way i could filter out a value based from another column

I need to filter out anything that column 2 gives to column1 
sample:

column1 column2
apple
orange
grapes
grapes
   


expected output
The grape should be removed from column1

column1 column2
apple
orange

grapes

 

will i use where or mvfilter ? 

| where column!=column1

Thank you in advance

Labels (2)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

As with much of SPL, there is more than one way to do that.  The method to use depends on how the current output was produced.  Please share the query.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...