Getting Data In

i have column a,b,c and i want to delete only in b column where value is 2. remaining columns should have to be same. i tried with mvfilter but it makes empty all the columns. i want to delete/remove particular value and make the field empty

DataOrg
Builder

a b c
1 2 3
2 1 4
4 1 2
1 2 3

0 Karma
1 Solution

dineshraj9
Builder

Just replace the value in column b when value is 2 with empty string -

<your search>  | eval b=if(b=2,"",b)

View solution in original post

dineshraj9
Builder

Just replace the value in column b when value is 2 with empty string -

<your search>  | eval b=if(b=2,"",b)

DataOrg
Builder

thanks. its worked 🙂

0 Karma

woodcock
Esteemed Legend

I would use null() instead of "".

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...