Splunk Search

Outuplookup update fields other than primary key


I am using | from datamodel:somedatamodel | fields username, IPaddress | outputlookup append=true filename.csv to append the data. Username is always unique but IPaddress changes based on what computer user logins from.

The method I am using is creating duplicate usernames and IP addresses. I can't use append=false because that will delete old data (if users didn't login according to the cron time schedule). I need a way not to delete existing usernames but just update the IP address of the username (without appending additional rows with the same username).

Is there a way to do this? Thanks

0 Karma


Hi @karthikmalla,
Can you try summary index to update the IP address of the username. Because lookup will die at some time but in summary index you can save it for as much time you want to.
For summary index you will just have to create a search which will save data in other index which will provide you your desired data.
You can configure summary index with the help of below splunk docs.

0 Karma
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!


Or Learn More in Our Blog >>