Splunk Search

How do I pass an input parameter to the search string of another input?

srizan
Path Finder

I have multiple inputs in the dashboard. The first input is for various environments (hard coded). And the second input is for various accounts from the selected environment (leverages search string). I have the first input tokenized as "env" however, passing it in the second input search string as environment=$env$ doesn't yield the value from the first input.

Tags (2)
0 Karma

srizan
Path Finder

Yeah! Seems like there was some issue with caching maybe, it worked in incognito.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @srizan,
searches are the same in inputs and panels, so you can manage tokens in the same way.
check if you need quotes because $env$ could contain spaces:

environment="$env$"

Ciao.
Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @srizan,
what do you mean with " it worked in incognito."?
Did you solved?

Ciao.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...