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
| ...

 

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...