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
Champion

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
Champion

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
Champion

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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...