Splunk Search

Outuplookup update fields other than primary key

karthikmalla
Explorer

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

nikita_p
Contributor

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.
http://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/Configuresummaryindexes

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