Splunk Search

Search results to lookup table

mwdbhyat
Builder

Hi,

I am currently running a search in a custom app that finds sourcetypes by number of hosts:
- | tstats dc(host) as "Number of Hosts" where index=test* by sourcetype

Id like to know how to:
- Convert the results to a lookup table
- Edit the lookup table when required in the UI - Would I be able to use the lookup app within my custom app?

Thanks!

0 Karma
1 Solution

renjith_nair
Legend

You can use outputlookup to store and modify data

See here : http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Outputlookup

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

You can use outputlookup to store and modify data

See here : http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Outputlookup

---
What goes around comes around. If it helps, hit it with Karma 🙂

mwdbhyat
Builder

Thanks - I should probably have mentioned that I need this information to display in the table on the dashboard where my search results currently get displayed.. So im guessing ill just set up a saved search to output the file to csv and update it daily, then on the dashboard use an inputlookup search to display the results..

My next task is to the somehow create a way to manually edit the lookup on the dashboard when required..I know there is a lookup app, any thoughts on how I could integrate this into my dashboard within my app?

0 Karma

renjith_nair
Legend

If you want to use another app, you need to create a link to the other app(even drill down works) from your dashboard or merge the artifacts of the apps.

Alternatively , you can KVstore lookup and create your own dashboards to edit or amend. Please see this example with all operations on a KVStore : http://dev.splunk.com/view/webframework-tutorials/SP-CAAAEZT

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...