{"id":47641,"date":"2021-11-16T15:08:19","date_gmt":"2021-11-16T15:08:19","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=47641"},"modified":"2021-11-16T15:08:19","modified_gmt":"2021-11-16T15:08:19","slug":"answer-by-warren-for-splunk-create-customized-query-for-splunk-dashboard-based-on-input-selection","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=47641","title":{"rendered":"Answer by warren for Splunk &#8211; Create customized query for Splunk dashboard based on Input selection"},"content":{"rendered":"<p>Investigate <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/Viz\/TokenReference\" rel=\"nofollow noreferrer\">dashboard tokens<\/a><\/p>\n<p>In your input field(s) (radio, dropdown, etc) on your dashboard, set the token to have multiple possible options (static or dynamic &#8211; your choice)<\/p>\n<p>Then in your SPL, do the following:<\/p>\n<pre><code>index=ndx &quot;$mytoken$&quot; msg=*\n| sort 0 - _time\n| table msg\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/69981364\/splunk-create-customized-query-for-splunk-dashboard-based-on-input-selection\/69991522#69991522<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Investigate dashboard tokens In your input field(s) (radio, dropdown, etc) on your dashboard, set the token to have multiple possible options (static or dynamic &#8211; your choice) Then in your SPL, do the following: index=ndx &quot;$mytoken$&quot; msg=* | sort 0 &#8211; _time | table msg from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/69981364\/splunk-create-customized-query-for-splunk-dashboard-based-on-input-selection\/69991522#69991522 via IFTTT<\/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-47641","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\/47641","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=47641"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/47641\/revisions"}],"predecessor-version":[{"id":47642,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/47641\/revisions\/47642"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47641"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=47641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}