Monitoring Splunk

lookup table field update

raomu
Explorer

Hello,

I have a lookup with 3 fields "Hostname" "IP" "Status" ( Status is by default set with the value "Non-Active")

Hostname IP Status
AA 10.x.x.x Non-Active

BB 10.x.x.x Non-Active

CC 10.x.x.x Non-Active

Now I did a search using lookup to find what all servers are currently reporting to Splunk :

Result :

Host reporting to Spunk

AA

CC

Based on the result I want to update the value of field (Status as "Active") in existing lookup

So the result I am expecting :

lookup table looks now :

Hostname IP Status
AA 10.x.x.x Active

BB 10.x.x.x Non-Active

CC 10.x.x.x Active

Tags (1)
0 Karma

valiquet
Contributor

|eval Status=Active | join type=left [|inputlookup table] |outputlookup

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 ...