<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I view and search multiple indexes from dashboards in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309111#M92711</link>
    <description>&lt;P&gt;Yes this is what I mean. Sorry about the confusion&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 18:53:09 GMT</pubDate>
    <dc:creator>eyaluodba</dc:creator>
    <dc:date>2017-05-23T18:53:09Z</dc:date>
    <item>
      <title>How can I view and search multiple indexes from dashboards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309108#M92708</link>
      <description>&lt;P&gt;I have a dashboard that lists/groups recently updated dashboards and I just wanted to know if there was a way to also add another column to view  and search the indexes of those same dashboards.&lt;BR /&gt;
Here is my code below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=_internal source=*web_access.log* /app/  action=edit  | rex  "/app/(?&amp;lt;app_name&amp;gt;.\w+)/(?&amp;lt;dashboard_name&amp;gt;.\w+)"  | table dashboard_name, _time, app_name, user &amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;-30d@d&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
    &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
    &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
    &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
    &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By the way-  I am referring to the indices that the searches inside the dashboard belong to.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 17:57:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309108#M92708</guid>
      <dc:creator>eyaluodba</dc:creator>
      <dc:date>2017-05-23T17:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I view and search multiple indexes from dashboards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309109#M92709</link>
      <description>&lt;P&gt;Dashboards do not "have indices" so I do not understand what you mean.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309109#M92709</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-23T18:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I view and search multiple indexes from dashboards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309110#M92710</link>
      <description>&lt;P&gt;are you referring to the indicies that the searches inside the dashboard belong to? so if you have a dashboard with two panels and one panel has a search in index=a and another panel with a search in index=b, you want to know that that dashboard "belongs" to indices a and b?&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309110#M92710</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-23T18:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I view and search multiple indexes from dashboards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309111#M92711</link>
      <description>&lt;P&gt;Yes this is what I mean. Sorry about the confusion&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309111#M92711</guid>
      <dc:creator>eyaluodba</dc:creator>
      <dc:date>2017-05-23T18:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I view and search multiple indexes from dashboards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309112#M92712</link>
      <description>&lt;P&gt;You pust pull the searches that are used on the dashboards from the xml. Tricky but is that it can also Use Savedsearches.&lt;/P&gt;

&lt;P&gt;we created a REST search, that lists all the dashboard with there searches that are used on them (in_line or savesearch, and what is the search).  It's not exactly what you want, but you could use it to extract the searches from your dasboards.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/data/ui/views splunk_server=*
| rename eai:* as *
| rename acl.* as *
| search isVisible=1 
| fields title data app
| makemv veld2 delim=","
| rex field=data max_match=0 "query\&amp;gt;(?&amp;lt;veld2&amp;gt;[^\&amp;lt;]+).*\&amp;lt;\/query"
| mvexpand veld2
| eval Applicatie=app
| eval Dashboard=title
| eval search=veld2
| fields search Applicatie Dashboard
| dedup search Applicatie Dashboard
| append
    [| rest /servicesNS/-/-/saved/searches/ splunk_server=*
    | dedup title
    | rename eai:* as *
    | rename acl.* as *
    | search sharing!=user
    | rename title as searchname
    | fields searchname is_scheduled search app
    | dedup searchname is_scheduled search app
    | join max=0 searchname
        [| rest /servicesNS/-/-/data/ui/views splunk_server=*
        | rename eai:* as *
        | rename acl.* as *
        | search isVisible=1 sharing!=user 
        | fields title data app
        | makemv savedsearch delim=","
        | rex field=data max_match=0 "search ref=\"(?&amp;lt;savedsearch&amp;gt;[^\"]+)\""
        | mvexpand savedsearch
        | eval Applicatie=app
        | eval Dashboard=title
        | rename savedsearch as searchname
        | fields searchname Applicatie Dashboard
    | dedup searchname Applicatie Dashboard ]]
| fields Dashboard, Applicatie, search, searchname, is_scheduled | eval is_scheduled=if(isnull(is_scheduled),"inline-search",is_scheduled)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2017 06:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-view-and-search-multiple-indexes-from-dashboards/m-p/309112#M92712</guid>
      <dc:creator>teunlaan</dc:creator>
      <dc:date>2017-05-24T06:52:40Z</dc:date>
    </item>
  </channel>
</rss>

