Splunk Search

How to append results to dropdown?

thenormalone
Path Finder

I have a dashboard that has a dropdown which takes in the values from a csv file. Is there a way I can add on to the results of the csv file without altering the csv file so that these two results show up in the dropdown?

<search>
<query> | inputlookup domains.csv | fields display, domain | dedup domain
</query>
<earliest>-24h@h</earliest>
<latest>now</latest> </search>

I need to add a couple more results to the dropdown that I'm currently extracting from the csv file. 

Any help is appreciated!

Labels (2)
0 Karma

yeahnah
Motivator

Hi @thenormalone 

You sure can, try this...

<search>
<query> | inputlookup domains.csv | inputlookup append=true other_domains.csv | fields display, domain | dedup domain
</query>
<earliest>-24h@h</earliest>
<latest>now</latest> </search>

 Hope it helps

thenormalone
Path Finder

Thanks for the response. I should've mentioned that I have tried that and it works, I'm curious if there a way to append results without using another cvs file?

0 Karma

yeahnah
Motivator

Sure is...

...<your normal search>...
| inputlookup append=true domains.csv
| ...

 

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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...