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
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...