<?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 to identify the search that generated a dashboard panel? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240937#M14930</link>
    <description>&lt;P&gt;Hi @hunters, thank you for taking the time to reply to my post. I think you've understood t correctly, but with the use of queries on panels, as I'm sure you know, the query isn't always a saved search, but it's hardcoded into the source XML for the dashboard, so unfortunately this doesn't work.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 05:58:35 GMT</pubDate>
    <dc:creator>IRHM73</dc:creator>
    <dc:date>2016-10-11T05:58:35Z</dc:date>
    <item>
      <title>How to identify the search that generated a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240935#M14928</link>
      <description>&lt;P&gt;Hi, I wonder whether someone may be able to help me please.&lt;/P&gt;

&lt;P&gt;I'm running the search below inserting a specific user name.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit NOT "search=' 
| history" NOT (user=splunk-system-user OR user="monitoring" OR user="txm.alerts") NOT "search='typeahead" NOT "search=' 
| metadata type=*  
| search totalCount&amp;gt;0" 
| eval Status=if(like(_raw, "%export%"), 1, 0) 
| where Status=1 
| search user="name"
| table user, search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search runs but because the user has exported data from a dashboard panel, the result for the search are returned as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; REST:
&amp;gt; /search/jobs/_c3RlcGiZW5u_c3lbi5iZW5u_c3BsZXh0cmFjdC1hcHA__search9_147626.3699/results/export][n/a]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could someone tell me please, is there a way to actually see the search for the dashboard panel?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 14:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240935#M14928</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2016-10-10T14:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the search that generated a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240936#M14929</link>
      <description>&lt;P&gt;Hi IRHM73, &lt;/P&gt;

&lt;P&gt;Not sure if I understand your question correctly, but instead of &lt;EM&gt;table user, search&lt;/EM&gt;, I'm wondering if you could try &lt;CODE&gt;table user, savedsearch_name&lt;/CODE&gt; so that you can identify the specific saved search that was executed? &lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
Hunter Shen&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 14:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240936#M14929</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2016-10-10T14:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the search that generated a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240937#M14930</link>
      <description>&lt;P&gt;Hi @hunters, thank you for taking the time to reply to my post. I think you've understood t correctly, but with the use of queries on panels, as I'm sure you know, the query isn't always a saved search, but it's hardcoded into the source XML for the dashboard, so unfortunately this doesn't work.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 05:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240937#M14930</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2016-10-11T05:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the search that generated a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240938#M14931</link>
      <description>&lt;P&gt;You can add this to your dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;done&amp;gt;
  &amp;lt;set token="MyPanelJobSID"&amp;gt;$job.sid$&amp;lt;/set&amp;gt;
&amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then the token is available for use anywhere, even in the Title Of the panel (a good place to put it for debugging).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 16:15:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240938#M14931</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-10-12T16:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the search that generated a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240939#M14932</link>
      <description>&lt;P&gt;^ this is correct for newer versions of Splunk Enterprise. If you are using something pre-6.3, you must use Javascript.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 16:39:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240939#M14932</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-12T16:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the search that generated a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240940#M14933</link>
      <description>&lt;P&gt;Hi @woodcock, forgive me because this is something that I've not done before. But I think I've set the token correctly as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;panel&amp;gt;      
      &amp;lt;input type="time" token="time_range1"&amp;gt;
        &amp;lt;label&amp;gt;Cust. Satisfaction Time&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;
          &amp;lt;earliestTime&amp;gt;-8d@d&amp;lt;/earliestTime&amp;gt;
          &amp;lt;latestTime&amp;gt;-1d@d&amp;lt;/latestTime&amp;gt;
        &amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Customer Satisfaction&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;QUERY CONTENT&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_range1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_range1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;done&amp;gt;
           &amp;lt;set token="MyPanelJobSID"&amp;gt;$job.sid$&amp;lt;/set&amp;gt;
        &amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But could you tell me please how I then search for the token Id in my query?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240940#M14933</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2016-10-13T07:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the search that generated a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240941#M14934</link>
      <description>&lt;P&gt;@IRHM73&lt;/P&gt;

&lt;P&gt;You use &lt;CODE&gt;loadjob&lt;/CODE&gt; SPL command with the SID. After the first command in the query below, you can do whatever SPL commands you want, i.e., there are no limitations unlike post-processing and global searches.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
  &amp;lt;query&amp;gt;|loadjob $MyPanelJobSID$ | ... more SPL as you need it ... | ... | ...&amp;lt;/query
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240941#M14934</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-13T10:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the search that generated a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240942#M14935</link>
      <description>&lt;P&gt;Exactly right.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 20:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-identify-the-search-that-generated-a-dashboard-panel/m-p/240942#M14935</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-24T20:14:52Z</dc:date>
    </item>
  </channel>
</rss>

