Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

compute the macro name to be used in a search

$
0
0
Hi Guys, Is it possible to calculate the name of a macro to be used in a search from a token value? I have a drop down list of system names that I have corresponding macros for. eg key = ABC - macro = ABC_hosts key = DEF - macro = DEF_hosts key = GHI - macro = GHI_hosts When a user selects an item from the list I want to use the token in my search to compute which macro to use. Is there a way to compute the macro name in the search? $system$_host if the user selected ABC I would like the search to have the following calculated using the token index="_main" `ABC_hosts` Thanks :)

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>