{"id":53088,"date":"2022-03-21T13:07:54","date_gmt":"2022-03-21T13:07:54","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=53088"},"modified":"2022-03-21T13:07:54","modified_gmt":"2022-03-21T13:07:54","slug":"answer-by-warren-for-splunk-conditional-search","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=53088","title":{"rendered":"Answer by warren for Splunk conditional search"},"content":{"rendered":"<p>Since this is taking place on a dashboard (else you wouldn&#8217;t have tokens), you may be best-off building the possible searches into separate panels, and only displaying the one you choose by using the <code>depends=&quot;$token$&quot;<\/code> option on each <code>panel<\/code> &#8211; using a conditional eval when a dropdown item is chosen<\/p>\n<p><a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/Viz\/PanelreferenceforSimplifiedXML\" rel=\"nofollow noreferrer\">https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/Viz\/PanelreferenceforSimplifiedXML<\/a><\/p>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/71534191\/splunk-conditional-search\/71558081#71558081<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since this is taking place on a dashboard (else you wouldn&#8217;t have tokens), you may be best-off building the possible searches into separate panels, and only displaying the one you choose by using the depends=&quot;$token$&quot; option on each panel &#8211; using a conditional eval when a dropdown item is chosen https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/Viz\/PanelreferenceforSimplifiedXML from User warren &#8211; &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=53088\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Splunk conditional search<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[991],"keyring_services":[],"class_list":["post-53088","post","type-post","status-publish","format-standard","hentry","category-blih","tag-stackexchange"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/53088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53088"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/53088\/revisions"}],"predecessor-version":[{"id":53089,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/53088\/revisions\/53089"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53088"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=53088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}