{"id":1090,"date":"2015-09-03T07:45:45","date_gmt":"2015-09-03T06:45:45","guid":{"rendered":"http:\/\/cdblog.cdstealer.com\/?p=1090"},"modified":"2018-11-28T06:36:55","modified_gmt":"2018-11-28T06:36:55","slug":"splunk-dropdown-menu","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=1090","title":{"rendered":"Splunk Dropdown Menu"},"content":{"rendered":"<p>You can create drop down menus in most apps eg search or a custom one. \u00a0This can be achieved creating the following path:<\/p>\n<pre>\/opt\/splunk\/etc\/apps\/&lt;app_name&gt;\/local\/data\/ui\/nav<\/pre>\n<p>Then created the file default.xml. \u00a0An example of the content is:<\/p>\n<pre>&lt;nav search_view=\"search\" color=\"#002B48\"&gt;\r\n &lt;view name=\"search\" default='true' \/&gt;\r\n &lt;collection label=\"Dashboards\"&gt;\r\n &lt;collection label=\"Business Intelligence\"&gt;\r\n &lt;view name=\"betting_stats\" \/&gt;\r\n &lt;\/collection&gt;\r\n &lt;collection label=\"Native Mobile Intelligence\"&gt;\r\n &lt;view name=\"crittercism_overview\" \/&gt;\r\n &lt;view name=\"crittercism_trends\" \/&gt;\r\n &lt;\/collection&gt;\r\n &lt;collection label=\"Operational Intelligence\"&gt;\r\n &lt;view name=\"operational_intelligence\" \/&gt;\r\n &lt;\/collection&gt;\r\n &lt;collection label=\"Social Media Posture\"&gt;\r\n &lt;view name=\"social_media_posture\" \/&gt;\r\n &lt;\/collection&gt;\r\n &lt;\/collection&gt;\r\n&lt;\/nav&gt;<\/pre>\n<p>The second line is the view that is loaded. \u00a0This can be a dashboard or as above, I've just used the default search view. \u00a0Below that are each option in the menu separated by the \"&lt;collection&gt;\" tags.<br \/>\nEach view name is the name of the dashboard to open.<\/p>\n<p><a href=\"http:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2015\/09\/Screenshot-from-2015-09-03-073842.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1091 size-full\" src=\"http:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2015\/09\/Screenshot-from-2015-09-03-073842.png\" alt=\"Example\" width=\"353\" height=\"177\" srcset=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2015\/09\/Screenshot-from-2015-09-03-073842.png 353w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2015\/09\/Screenshot-from-2015-09-03-073842-300x150.png 300w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can create drop down menus in most apps eg search or a custom one. \u00a0This can be achieved creating the following path: \/opt\/splunk\/etc\/apps\/&lt;app_name&gt;\/local\/data\/ui\/nav Then created the file default.xml. \u00a0An example of the content is: &lt;nav search_view=\"search\" color=\"#002B48\"&gt; &lt;view name=\"search\" default='true' \/&gt; &lt;collection label=\"Dashboards\"&gt; &lt;collection label=\"Business Intelligence\"&gt; &lt;view name=\"betting_stats\" \/&gt; &lt;\/collection&gt; &lt;collection label=\"Native Mobile Intelligence\"&gt; &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=1090\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Splunk Dropdown Menu<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305],"tags":[217,216,215],"class_list":["post-1090","post","type-post","status-publish","format-standard","hentry","category-splunk","tag-dropdown","tag-menu","tag-splunk"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1090"}],"version-history":[{"count":2,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1090\/revisions"}],"predecessor-version":[{"id":1093,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1090\/revisions\/1093"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}