<?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 make output from dashboard panel to be input to another dashboard panel ? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321038#M39421</link>
    <description>&lt;P&gt;yes in the same dashboard,, and i need its value to be integrated in the second search automatically &lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 13:46:40 GMT</pubDate>
    <dc:creator>MAShawky</dc:creator>
    <dc:date>2017-05-29T13:46:40Z</dc:date>
    <item>
      <title>How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321032#M39415</link>
      <description>&lt;P&gt;I have a search like below displayed in a panel,&lt;BR /&gt;
|inputlookup  COA_table.csv  | BALANCE_TYPE=YTD&lt;BR /&gt;
eval Net_Profit = X +Y &lt;BR /&gt;
 | table Net_Profit&lt;/P&gt;

&lt;P&gt;I want to add the output from this panel to be input for another search in another panel to make search like below &lt;/P&gt;

&lt;P&gt;|inputlookup  COA_table.csv  | BALANCE_TYPE=SOR&lt;BR /&gt;
eval Partner = D + T + $Net_Profit $&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321032#M39415</guid>
      <dc:creator>MAShawky</dc:creator>
      <dc:date>2020-09-29T14:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321033#M39416</link>
      <description>&lt;P&gt;Is Net_Profit result from first query a single value, or can it contain multiple rows? &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 09:34:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321033#M39416</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-29T09:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321034#M39417</link>
      <description>&lt;P&gt;it's result is single value, but it generated from another equation &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 09:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321034#M39417</guid>
      <dc:creator>MAShawky</dc:creator>
      <dc:date>2017-05-29T09:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321035#M39418</link>
      <description>&lt;P&gt;Can you also add what Kind of visualization you are using in Dashboard 1 with &lt;STRONG&gt;table Net_Profit&lt;/STRONG&gt; ?&lt;BR /&gt;
Are you using &lt;STRONG&gt;table&lt;/STRONG&gt;? or &lt;STRONG&gt;Single Value&lt;/STRONG&gt; visualization? Also which version of Splunk are you on?&lt;/P&gt;

&lt;P&gt;In any case you can create a &lt;STRONG&gt;drilldown&lt;/STRONG&gt; from visualiation in Dashboard 1 to &lt;STRONG&gt;link&lt;/STRONG&gt; to dashboard 2. You can refer to Contextual &lt;STRONG&gt;Drilldown&lt;/STRONG&gt; example in &lt;STRONG&gt;Splunk 6.x Dashboard Examples&lt;/STRONG&gt; app. However, depending the visualization the token to be passed might change.&lt;/P&gt;

&lt;P&gt;You can also refer to Splunk Documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/DrilldownLinkToDashboard"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/DrilldownLinkToDashboard&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;PS: Since drilldown event handling has changed in 6.6 please make sure you select correct Splunk Enterprise version in the documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 10:37:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321035#M39418</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-29T10:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321036#M39419</link>
      <description>&lt;P&gt;am using splunk 6.6&lt;/P&gt;

&lt;P&gt;Net_Profit is a single value,, anyway i need this value involved  automatically in the search   without any action &lt;/P&gt;

&lt;P&gt;|inputlookup COA_table.csv | BALANCE_TYPE=SOR&lt;BR /&gt;
eval Partner = D + T + $Net_Profit $&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321036#M39419</guid>
      <dc:creator>MAShawky</dc:creator>
      <dc:date>2020-09-29T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321037#M39420</link>
      <description>&lt;P&gt;May be it is unclear from the Question... But are both panels in the same dashboard? Then this would be doable without any action.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 13:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321037#M39420</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-29T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321038#M39421</link>
      <description>&lt;P&gt;yes in the same dashboard,, and i need its value to be integrated in the second search automatically &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 13:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321038#M39421</guid>
      <dc:creator>MAShawky</dc:creator>
      <dc:date>2017-05-29T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321039#M39422</link>
      <description>&lt;P&gt;Without snippet of your current dashboard's Simple XML, here is how you can pass on token from one Panel to Another in the Same Dashboard. Since we are using &lt;CODE&gt;$result.&amp;lt;fieldName&amp;gt;$&lt;/CODE&gt; token to pass on the value of a field from the search to another, the pre-requisite is that the first search must return only single row (I have used &lt;CODE&gt;| head 1&lt;/CODE&gt; to ensure the same).&lt;/P&gt;

&lt;P&gt;PS: &lt;STRONG&gt;progress&lt;/STRONG&gt; and &lt;STRONG&gt;done&lt;/STRONG&gt; search event handlers in 6.6 can be used to access $result.Net_Profit$ from first search.&lt;BR /&gt;
job.resultCount is used to default the value to 0 in case search returns no results. Token &lt;STRONG&gt;$tok_NetProfit$&lt;/STRONG&gt; set in progress event handler can be reused in the second search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
   &amp;lt;panel&amp;gt;
     &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
            &amp;lt;query&amp;gt;| inputlookup COA_table.csv 
| search  BALANCE_TYPE="YTD"
| table Net_Profit
| head 1
            &amp;lt;/query&amp;gt;
            &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;&amp;lt;!-- Use your own Time Token--&amp;gt;
            &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&amp;lt;!-- Use your own Time Token--&amp;gt;
            &amp;lt;progress&amp;gt;
                 &amp;lt;condition match="$job.resultCount$==0"&amp;gt;
                        &amp;lt;set token="tok_NetProfit"&amp;gt;0&amp;lt;/set&amp;gt;
                 &amp;lt;/condition&amp;gt;
                 &amp;lt;condition&amp;gt;
                        &amp;lt;set token="tok_NetProfit"&amp;gt;$result.Net_Profit$&amp;lt;/set&amp;gt;
                 &amp;lt;/condition&amp;gt;
            &amp;lt;/progress&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
         &amp;lt;single&amp;gt;
             &amp;lt;search&amp;gt;
                  &amp;lt;query&amp;gt;| inputlookup COA_table.csv 
| search BALANCE_TYPE="SOR"
| eval Partner = D + T + $tok_NetProfit$
                  &amp;lt;/query&amp;gt;
                  &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;&amp;lt;!-- Use your own Time Token--&amp;gt;
                  &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&amp;lt;!-- Use your own Time Token--&amp;gt;
             &amp;lt;/search&amp;gt;
         &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
&amp;lt;row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Refer to documentation for details: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#progress" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#progress&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321039#M39422</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T14:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I make output from dashboard panel to be input to another dashboard panel ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321040#M39423</link>
      <description>&lt;P&gt;In the generating panel add this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;done&amp;gt;
  &amp;lt;set token="GENERATOR_SID"&amp;gt;"$job.sid$"&amp;lt;/set&amp;gt;
&amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then in the consuming panel do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;table depends="$GENERATOR_SID$"&amp;gt;
    &amp;lt;title&amp;gt;Splunk is fun&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;|loadjob $GENERATOR_SID$ | other stuff here&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will also need to add this somewhere appropriate:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;init&amp;gt;
  &amp;lt;unset token="GENERATOR_SID"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/init&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 May 2017 14:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-Can-I-make-output-from-dashboard-panel-to-be-input-to/m-p/321040#M39423</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-29T14:54:32Z</dc:date>
    </item>
  </channel>
</rss>

