Splunk Search

How can I remove entries from an existing lookup table?

ddrillic
Ultra Champion

I have a lookup table from which I need to remove a couple of lines. How can I do it?

Tags (2)
0 Karma
1 Solution

niketn
Legend

@ddrillic are you looking for inputlookup --> Filter Unwanted Results --> outputlookup?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

@ddrillic are you looking for inputlookup --> Filter Unwanted Results --> outputlookup?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

ddrillic
Ultra Champion

Right @niketnilay ; -) this one did it - | inputlookup <lookup name> | search host != host* | outputlookup <lookup name>

Based on How to remove a row from lookup table and update it?

@niketnilay - please convert to an answer.

manjunath_n
Engager

Have a similar requirement.

| inputlookup <lookup name> | search host != host* | outputlookup <lookup name>

We want to remove a guid record or line containing the guid from the lookup table so we should filter using = or != ?

| inputlookup abc | search guid= 123456 | outputlookup abc,  when tried with this ended up in updating only this record for the entire lookup , so ideally the query should be | inputlookup abc | search guid!= 123456 | outputlookup abc right? please clarify on the filtering of the result @ddrillic @niketn Thanks!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...