- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have three text input boxes in my dashboard. I want to add (/append) those values to a kvstore collection on clicking the submit button. I am trying to use outputlookup, but have not had any luck, yet.
Can somebody give me a clue? Please let me know if you need more information to understand the problem better.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

You need to open your lookup with append=True and then have eval statements.
For eg.
inputlookup append=T kv_store|eval id=$id$, oldval=$oldValue$, newval=$newValue$| table id, newval,oldval| outputlookup kv_store
Also if your input lookup is empty initially, you may need to add some search criteria so that you get a result before appending data to empty lookup
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

You need to open your lookup with append=True and then have eval statements.
For eg.
inputlookup append=T kv_store|eval id=$id$, oldval=$oldValue$, newval=$newValue$| table id, newval,oldval| outputlookup kv_store
Also if your input lookup is empty initially, you may need to add some search criteria so that you get a result before appending data to empty lookup
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot @hardikJsheth. I followed your cue and tried the following command. It worked.
|inputlookup "KV_Store" append=true
|eval id=$id$
| eval newval= "$newValue$"
| eval oldval="$oldValue$"
| dedup id
|table id, newval, oldval
| outputlookup "KV_Store" append=true
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Have your tried append=t
?
|inputlookup kv_store|eval id=$id$| eval oldval=$oldValue$| eval newval=$newValue$| table id, newval,oldval| outputlookup kv_store append=t
http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Outputlookup
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I apologize for missing that part. I should have mentioned that later I tried that, too, but did not help much.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

What is the outputlookup command string you are using ?
That would help us to proceed further.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried:
|inputlookup kv_store|eval id=$id$| eval oldval=$oldValue$| eval newval=$newValue$| table id, newval,oldval| outputlookup kv_store
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just want to add these fields into the KVStore collection. No index or sourcetype is involved here. Thus I thought, probably reading the kvstore first and then storing the values in it would work. But in vain.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Try using these :
|inputlookup kv_store|eval id=$id$| eval oldval=$oldValue$| eval newval=$newValue$| table id, newval,oldval| outputlookup kv_store append=TRUE
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@pramit46 Did this work ?
