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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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