Knowledge Management

kvstore

VijaySrrie
Builder

Hi,

I have created a KVstore

_key value should be avc_id field 

In my case the key value is auto created, how to correct it?

Labels (2)
0 Karma
1 Solution

manjunathmeti
SplunkTrust
SplunkTrust

hi @VijaySrrie,
You can update the KVStore collection using outputlookup command with setting _key to the field avc_id values. 

| inputlookup kvstore_lookup_name | eval _key=avc_id | outputlookup kvstore_lookup_name

 

If this reply helps you, an upvote/like would be appreciated.

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

@VijaySrrie 

try

 

 

YOUR SEARCH 
| eval key= avc_id
| outputlookup my_kvstore_name append=true key_field=key

 

0 Karma

manjunathmeti
SplunkTrust
SplunkTrust

This creates duplicate events with original and new _keys in the KVStore collection.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust
I have updated answer.. My focus was just to point on use of key_field in outputlookup command 🙂
0 Karma

manjunathmeti
SplunkTrust
SplunkTrust

hi @VijaySrrie,
You can update the KVStore collection using outputlookup command with setting _key to the field avc_id values. 

| inputlookup kvstore_lookup_name | eval _key=avc_id | outputlookup kvstore_lookup_name

 

If this reply helps you, an upvote/like would be appreciated.

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...