<?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: Use query results from one panel as input to query on another panel on the same Dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-query-results-from-one-panel-as-input-to-query-on-another/m-p/365782#M107873</link>
    <description>&lt;P&gt;I think what you might want to do is use post processing. This is a little bit of a complex post processing, as they're chained together, but i think it might work for what you're doing.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Viz/Savedsearches#Post-process_searches_2"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Viz/Savedsearches#Post-process_searches_2&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="refresh_button.js"&amp;gt;
   &amp;lt;label&amp;gt;Transactions&amp;lt;/label&amp;gt;
   &amp;lt;description&amp;gt;Filterable means to examine transactions&amp;lt;/description&amp;gt;
   &amp;lt;fieldset submitButton="true" autoRun="true"&amp;gt;
     &amp;lt;input type="time" token="global_time_tok"&amp;gt;
       &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
       &amp;lt;default&amp;gt;
         &amp;lt;earliest&amp;gt;-4h@m&amp;lt;/earliest&amp;gt;
         &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
       &amp;lt;/default&amp;gt;
     &amp;lt;/input&amp;gt;
     &amp;lt;input type="multiselect" searchWhenChanged="false" token="global_host_tok"&amp;gt;
       &amp;lt;label&amp;gt;Select Hosts&amp;lt;/label&amp;gt;
       &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
       &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
       &amp;lt;valuePrefix&amp;gt;host=&amp;lt;/valuePrefix&amp;gt;
       &amp;lt;delimiter&amp;gt; OR  &amp;lt;/delimiter&amp;gt;
       &amp;lt;default&amp;gt;host1&amp;lt;/default&amp;gt;
       &amp;lt;choice value="host1"&amp;gt;host1&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="host2"&amp;gt;host2&amp;lt;/choice&amp;gt;      
       ..
       &amp;lt;choice value="host10"&amp;gt;host10&amp;lt;/choice&amp;gt;            
       &amp;lt;initialValue&amp;gt;host1&amp;lt;/initialValue&amp;gt;
     &amp;lt;/input&amp;gt;
     &amp;lt;input type="dropdown" token="global_duration_tok"&amp;gt;
       &amp;lt;label&amp;gt;Completed Transaction Duration (secs)&amp;lt;/label&amp;gt;
       &amp;lt;choice value="1"&amp;gt;&amp;gt;1&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="5"&amp;gt;&amp;gt;5&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="15"&amp;gt;&amp;gt;15&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="30"&amp;gt;&amp;gt;30&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="60"&amp;gt;&amp;gt;60&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="300"&amp;gt;&amp;gt;300&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="3600"&amp;gt;&amp;gt;3600&amp;lt;/choice&amp;gt;
       &amp;lt;default&amp;gt;15&amp;lt;/default&amp;gt;
     &amp;lt;/input&amp;gt;
     &amp;lt;input type="text" token="global_search_tok" searchWhenChanged="false"&amp;gt;
       &amp;lt;label&amp;gt;Freeform Search&amp;lt;/label&amp;gt;
       &amp;lt;default&amp;gt; &amp;lt;/default&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
   &amp;lt;search id="baseSearch"&amp;gt;
      &amp;lt;query&amp;gt;
        &amp;lt;my query1 here&amp;gt; |
            table _time Host_JVM MemIdNum Interaction Duration | 
            sort _time
      &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;search base="baseSearch" id="subBaseSearch"&amp;gt;
      &amp;lt;query&amp;gt;
        |table interestingField|format
      &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;done&amp;gt;&amp;lt;set token="results_tok_query1"&amp;gt;$results.interestingField$&amp;lt;/set&amp;gt;&amp;lt;/done&amp;gt;
    &amp;lt;/search&amp;gt;
   &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
       &amp;lt;title&amp;gt;Completed Transactions Info&amp;lt;/title&amp;gt;
       &amp;lt;table&amp;gt;
         &amp;lt;search base="baseSearch"&amp;gt;
             &amp;lt;query&amp;gt;
             &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
           &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
         &amp;lt;/search&amp;gt;
       &amp;lt;/table&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
   &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
       &amp;lt;title&amp;gt;Completed Transactions Full Log&amp;lt;/title&amp;gt;
       &amp;lt;event&amp;gt;
         &amp;lt;search&amp;gt;
             &amp;lt;query&amp;gt;
                 &amp;lt;my query2 here $results_tok_query1$ |
                 transaction myCid  | 
                 where duration&amp;gt;$global_duration_tok$ | search $global_search_tok$ | sort _time
             &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
           &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
         &amp;lt;/search&amp;gt;
         &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
       &amp;lt;/event&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;  
 &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Oct 2017 12:43:21 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-10-04T12:43:21Z</dc:date>
    <item>
      <title>Use query results from one panel as input to query on another panel on the same Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-query-results-from-one-panel-as-input-to-query-on-another/m-p/365781#M107872</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sorry if I am duplicating question here but I could not find an answer in the other posts that matched my scenario.&lt;/P&gt;

&lt;P&gt;So I have a number of inputs on my dashboard and two panels, the first panel results in a multi row table. I wish to use the values from one of the fields as an input to a second panel on the same dashboard. I am not sure if this is possible as I have read cases where only single results are passed in this way, is this correct?&lt;/P&gt;

&lt;P&gt;Ideally I would like the first query to be complete before the second attempted to load, and I would like the data from the query1 field I am interested in like this ( val1 OR val2 .....), so I can then use a token to insert it into my second query. I've pasted a cut down version of the Dashboard to help where $results_tok_query1$ equates to ( val1 OR val2 .....) resulting form the first query.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
N&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="refresh_button.js"&amp;gt;
  &amp;lt;label&amp;gt;Transactions&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Filterable means to examine transactions&amp;lt;/description&amp;gt;
  &amp;lt;fieldset submitButton="true" autoRun="true"&amp;gt;
    &amp;lt;input type="time" token="global_time_tok"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-4h@m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" searchWhenChanged="false" token="global_host_tok"&amp;gt;
      &amp;lt;label&amp;gt;Select Hosts&amp;lt;/label&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;host=&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR  &amp;lt;/delimiter&amp;gt;
      &amp;lt;default&amp;gt;host1&amp;lt;/default&amp;gt;
      &amp;lt;choice value="host1"&amp;gt;host1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="host2"&amp;gt;host2&amp;lt;/choice&amp;gt;    
      ..
      &amp;lt;choice value="host10"&amp;gt;host10&amp;lt;/choice&amp;gt;          
      &amp;lt;initialValue&amp;gt;host1&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="global_duration_tok"&amp;gt;
      &amp;lt;label&amp;gt;Completed Transaction Duration (secs)&amp;lt;/label&amp;gt;
      &amp;lt;choice value="1"&amp;gt;&amp;gt;1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="5"&amp;gt;&amp;gt;5&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="15"&amp;gt;&amp;gt;15&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="30"&amp;gt;&amp;gt;30&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="60"&amp;gt;&amp;gt;60&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="300"&amp;gt;&amp;gt;300&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="3600"&amp;gt;&amp;gt;3600&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;15&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="global_search_tok" searchWhenChanged="false"&amp;gt;
      &amp;lt;label&amp;gt;Freeform Search&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt; &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Completed Transactions Info&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
            &amp;lt;query&amp;gt;
                &amp;lt;my query1 here&amp;gt; |
                table _time Host_JVM MemIdNum Interaction Duration | 
                sort _time
            &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Completed Transactions Full Log&amp;lt;/title&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search&amp;gt;
            &amp;lt;query&amp;gt;
                &amp;lt;my query2 here $results_tok_query1$ |
                transaction myCid  | 
                where duration&amp;amp;gt;$global_duration_tok$ | search $global_search_tok$ | sort _time
            &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
      &amp;lt;/event&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;  
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-query-results-from-one-panel-as-input-to-query-on-another/m-p/365781#M107872</guid>
      <dc:creator>nmulm</dc:creator>
      <dc:date>2020-09-29T16:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use query results from one panel as input to query on another panel on the same Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-query-results-from-one-panel-as-input-to-query-on-another/m-p/365782#M107873</link>
      <description>&lt;P&gt;I think what you might want to do is use post processing. This is a little bit of a complex post processing, as they're chained together, but i think it might work for what you're doing.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Viz/Savedsearches#Post-process_searches_2"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Viz/Savedsearches#Post-process_searches_2&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="refresh_button.js"&amp;gt;
   &amp;lt;label&amp;gt;Transactions&amp;lt;/label&amp;gt;
   &amp;lt;description&amp;gt;Filterable means to examine transactions&amp;lt;/description&amp;gt;
   &amp;lt;fieldset submitButton="true" autoRun="true"&amp;gt;
     &amp;lt;input type="time" token="global_time_tok"&amp;gt;
       &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
       &amp;lt;default&amp;gt;
         &amp;lt;earliest&amp;gt;-4h@m&amp;lt;/earliest&amp;gt;
         &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
       &amp;lt;/default&amp;gt;
     &amp;lt;/input&amp;gt;
     &amp;lt;input type="multiselect" searchWhenChanged="false" token="global_host_tok"&amp;gt;
       &amp;lt;label&amp;gt;Select Hosts&amp;lt;/label&amp;gt;
       &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
       &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
       &amp;lt;valuePrefix&amp;gt;host=&amp;lt;/valuePrefix&amp;gt;
       &amp;lt;delimiter&amp;gt; OR  &amp;lt;/delimiter&amp;gt;
       &amp;lt;default&amp;gt;host1&amp;lt;/default&amp;gt;
       &amp;lt;choice value="host1"&amp;gt;host1&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="host2"&amp;gt;host2&amp;lt;/choice&amp;gt;      
       ..
       &amp;lt;choice value="host10"&amp;gt;host10&amp;lt;/choice&amp;gt;            
       &amp;lt;initialValue&amp;gt;host1&amp;lt;/initialValue&amp;gt;
     &amp;lt;/input&amp;gt;
     &amp;lt;input type="dropdown" token="global_duration_tok"&amp;gt;
       &amp;lt;label&amp;gt;Completed Transaction Duration (secs)&amp;lt;/label&amp;gt;
       &amp;lt;choice value="1"&amp;gt;&amp;gt;1&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="5"&amp;gt;&amp;gt;5&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="15"&amp;gt;&amp;gt;15&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="30"&amp;gt;&amp;gt;30&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="60"&amp;gt;&amp;gt;60&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="300"&amp;gt;&amp;gt;300&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="3600"&amp;gt;&amp;gt;3600&amp;lt;/choice&amp;gt;
       &amp;lt;default&amp;gt;15&amp;lt;/default&amp;gt;
     &amp;lt;/input&amp;gt;
     &amp;lt;input type="text" token="global_search_tok" searchWhenChanged="false"&amp;gt;
       &amp;lt;label&amp;gt;Freeform Search&amp;lt;/label&amp;gt;
       &amp;lt;default&amp;gt; &amp;lt;/default&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
   &amp;lt;search id="baseSearch"&amp;gt;
      &amp;lt;query&amp;gt;
        &amp;lt;my query1 here&amp;gt; |
            table _time Host_JVM MemIdNum Interaction Duration | 
            sort _time
      &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;search base="baseSearch" id="subBaseSearch"&amp;gt;
      &amp;lt;query&amp;gt;
        |table interestingField|format
      &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;done&amp;gt;&amp;lt;set token="results_tok_query1"&amp;gt;$results.interestingField$&amp;lt;/set&amp;gt;&amp;lt;/done&amp;gt;
    &amp;lt;/search&amp;gt;
   &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
       &amp;lt;title&amp;gt;Completed Transactions Info&amp;lt;/title&amp;gt;
       &amp;lt;table&amp;gt;
         &amp;lt;search base="baseSearch"&amp;gt;
             &amp;lt;query&amp;gt;
             &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
           &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
         &amp;lt;/search&amp;gt;
       &amp;lt;/table&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
   &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
       &amp;lt;title&amp;gt;Completed Transactions Full Log&amp;lt;/title&amp;gt;
       &amp;lt;event&amp;gt;
         &amp;lt;search&amp;gt;
             &amp;lt;query&amp;gt;
                 &amp;lt;my query2 here $results_tok_query1$ |
                 transaction myCid  | 
                 where duration&amp;gt;$global_duration_tok$ | search $global_search_tok$ | sort _time
             &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$global_time_tok.earliest$&amp;lt;/earliest&amp;gt;
           &amp;lt;latest&amp;gt;$global_time_tok.latest$&amp;lt;/latest&amp;gt;
         &amp;lt;/search&amp;gt;
         &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
       &amp;lt;/event&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;  
 &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Oct 2017 12:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-query-results-from-one-panel-as-input-to-query-on-another/m-p/365782#M107873</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-10-04T12:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use query results from one panel as input to query on another panel on the same Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-query-results-from-one-panel-as-input-to-query-on-another/m-p/365783#M107874</link>
      <description>&lt;P&gt;Here's the structure that works for me in one dashboard/form.  &lt;/P&gt;

&lt;P&gt;In the original design, the single search calculated field2 (which was a big chunk of a search) and then ran a &lt;CODE&gt;map&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;In the revised, two-search form, the first search creates the field2, then the second search runs it.  &lt;/P&gt;

&lt;P&gt;For whatever reason, this is WAY faster than the &lt;CODE&gt;map&lt;/CODE&gt; version, and as a bonus, you can check the details in the index to see of exactly what the final search language was. &lt;/P&gt;

&lt;P&gt;The order of the two panels is not important using simple XML. I put the "first" panel at the bottom because, for my use case, I didn't need to see the output, and in my live dash, not reflected below, the panel stays hidden. (If I recall correctly, when using sideview the order would have to be reversed.) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;fieldset submitButton="true"&amp;gt;

    ....various input fields including the one example here...

    &amp;lt;input type="text" token="userfield"&amp;gt;
      &amp;lt;label&amp;gt;fieldname of user name field&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;user&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;

  &amp;lt;/fieldset&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$field2$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;

   search 2 language here $field2$
   more search language here

          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;panel &amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;

      search language here using input field tokens like $userfield$ 
      more search language that calculates and populates field2
      | table field2

          &amp;lt;/query&amp;gt;

          &amp;lt;finalized&amp;gt;
            &amp;lt;set token="field2"&amp;gt;$result.field2$&amp;lt;/set&amp;gt;
          &amp;lt;/finalized&amp;gt;

        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;NOTE - the above is stripped down to the minimum necessary framework to achieve the result.  The working parts are the &lt;CODE&gt;&amp;lt;finalized&amp;gt;&lt;/CODE&gt; in the first search using the row 1 results to set the token for the second search.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 13:06:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-query-results-from-one-panel-as-input-to-query-on-another/m-p/365783#M107874</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-04T13:06:06Z</dc:date>
    </item>
  </channel>
</rss>

