<?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 Summary Index token drop down help in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Summary-Index-token-drop-down-help/m-p/468630#M30748</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;My current configs has drop down with one token , 3 choice value and 1 search query below.&lt;/P&gt;

&lt;P&gt;$api_cached_realtime_token$ is replaced by choice value as per 3 dropdown(All, RealTime, Cached )&lt;BR /&gt;
 Below is original code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;input type="dropdown" token="api_cached_realtime_token" searchWhenChanged="true"&amp;gt;
    &amp;lt;label&amp;gt;Type&amp;lt;/label&amp;gt;
    &amp;lt;choice value="apiActualTimeTaken"&amp;gt;All&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="realTime_timeTaken"&amp;gt;RealTime&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="cached_timeTaken"&amp;gt;Cached&amp;lt;/choice&amp;gt;
    &amp;lt;default&amp;gt;apiActualTimeTaken&amp;lt;/default&amp;gt;
    &amp;lt;initialValue&amp;gt;apiActualTimeTaken&amp;lt;/initialValue&amp;gt;
  &amp;lt;/input&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=mysupport_core sourcetype=mysupport_app_log event=ApiSummaryEvent api=LinkingToolController.linkProduct  apiStatus=* | timechart span=1h avg($api_cached_realtime_token$) as AVG, P95($api_cached_realtime_token$) as P95&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I am moving into summary index.&lt;/P&gt;

&lt;P&gt;summary_index is = my_summary_index I am writing all the above into summary index by using search query below.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=mysupport_core sourcetype=mysupport_app_log event=ApiSummaryEvent api=LinkingToolController.linkProduct  apiStatus=* | stats avg(apiActualTimeTaken) as AVG_Actual avg(realTime_timeTaken) as AVG_real avg(cached_timeTaken) as AVG_cached P95(apiActualTimeTaken) as P95_Actual P95(realTime_timeTaken) as P95_real P95(cached_timeTaken) as P95_cached&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Pls help me achieve same  with 3 dropdown (All, RealTime, Cached )  that output search  for respective drop-down. (one-token-multiple value-perhaps) &lt;BR /&gt;
index=my_summary_index | stats sum(AVG_Actual or AVG_real or  AVG_cached ) as AVG sum(P95_Actual or  P95_real  or P95_cached) as per dropdown(All, RealTime, Cached ) respectively.&lt;/P&gt;

&lt;P&gt;I tried This article helped a bit but could not achieve yet.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/525245/how-to-pass-multiple-values-for-a-field-through-to-1.html" target="_blank"&gt;https://answers.splunk.com/answers/525245/how-to-pass-multiple-values-for-a-field-through-to-1.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:25:24 GMT</pubDate>
    <dc:creator>harkirat9712</dc:creator>
    <dc:date>2020-09-30T03:25:24Z</dc:date>
    <item>
      <title>Summary Index token drop down help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Summary-Index-token-drop-down-help/m-p/468630#M30748</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;My current configs has drop down with one token , 3 choice value and 1 search query below.&lt;/P&gt;

&lt;P&gt;$api_cached_realtime_token$ is replaced by choice value as per 3 dropdown(All, RealTime, Cached )&lt;BR /&gt;
 Below is original code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;input type="dropdown" token="api_cached_realtime_token" searchWhenChanged="true"&amp;gt;
    &amp;lt;label&amp;gt;Type&amp;lt;/label&amp;gt;
    &amp;lt;choice value="apiActualTimeTaken"&amp;gt;All&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="realTime_timeTaken"&amp;gt;RealTime&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="cached_timeTaken"&amp;gt;Cached&amp;lt;/choice&amp;gt;
    &amp;lt;default&amp;gt;apiActualTimeTaken&amp;lt;/default&amp;gt;
    &amp;lt;initialValue&amp;gt;apiActualTimeTaken&amp;lt;/initialValue&amp;gt;
  &amp;lt;/input&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=mysupport_core sourcetype=mysupport_app_log event=ApiSummaryEvent api=LinkingToolController.linkProduct  apiStatus=* | timechart span=1h avg($api_cached_realtime_token$) as AVG, P95($api_cached_realtime_token$) as P95&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I am moving into summary index.&lt;/P&gt;

&lt;P&gt;summary_index is = my_summary_index I am writing all the above into summary index by using search query below.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=mysupport_core sourcetype=mysupport_app_log event=ApiSummaryEvent api=LinkingToolController.linkProduct  apiStatus=* | stats avg(apiActualTimeTaken) as AVG_Actual avg(realTime_timeTaken) as AVG_real avg(cached_timeTaken) as AVG_cached P95(apiActualTimeTaken) as P95_Actual P95(realTime_timeTaken) as P95_real P95(cached_timeTaken) as P95_cached&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Pls help me achieve same  with 3 dropdown (All, RealTime, Cached )  that output search  for respective drop-down. (one-token-multiple value-perhaps) &lt;BR /&gt;
index=my_summary_index | stats sum(AVG_Actual or AVG_real or  AVG_cached ) as AVG sum(P95_Actual or  P95_real  or P95_cached) as per dropdown(All, RealTime, Cached ) respectively.&lt;/P&gt;

&lt;P&gt;I tried This article helped a bit but could not achieve yet.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/525245/how-to-pass-multiple-values-for-a-field-through-to-1.html" target="_blank"&gt;https://answers.splunk.com/answers/525245/how-to-pass-multiple-values-for-a-field-through-to-1.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Summary-Index-token-drop-down-help/m-p/468630#M30748</guid>
      <dc:creator>harkirat9712</dc:creator>
      <dc:date>2020-09-30T03:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Index token drop down help</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Summary-Index-token-drop-down-help/m-p/468631#M30749</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="api_cached_realtime_token" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Type&amp;lt;/label&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="api_test1"&amp;gt;mvindex(split($api_cached_realtime_token$,","),0)&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="api_test2"&amp;gt;mvindex(split($api_cached_realtime_token$,","),1)&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;column&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;value&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults
| eval _raw="All,RealTime,Cached
AVG_Actual,AVG_real,AVG_cached
P95_Actual,P95_real,P95_cached"
| multikv forceheader=1
| table All RealTime Cached
| transpose
| eval value=mvzip('row 1','row 2')
| table column value&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;1: $api_cached_realtime_token$&amp;lt;br/&amp;gt;2: $api_test1$&amp;lt;br/&amp;gt;3: $api_test2$&amp;lt;/h1&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, @harkirat9712&lt;BR /&gt;
I made the token appropriately, so if you can fix it.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 03:03:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Summary-Index-token-drop-down-help/m-p/468631#M30749</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-22T03:03:07Z</dc:date>
    </item>
  </channel>
</rss>

