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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...