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!

ATTENTION!! We’re MOVING (not really)

Hey, all! In an effort to keep this Slack workspace secure and also to make our new members' experience easy, ...

Splunk Admins: Build a Smarter Stack with These Must-See .conf25 Sessions

  Whether you're running a complex Splunk deployment or just getting your bearings as a new admin, .conf25 ...

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...