<?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: Dealing with Multiple dynamic input such as country in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487543#M31955</link>
    <description>&lt;P&gt;Thanks! this works perfectly!&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 09:08:22 GMT</pubDate>
    <dc:creator>chiennylin</dc:creator>
    <dc:date>2020-01-16T09:08:22Z</dc:date>
    <item>
      <title>Dealing with Multiple dynamic input such as country</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487540#M31952</link>
      <description>&lt;P&gt;Currently, we are extracting the total of bagging per country and this is being stored in a report.&lt;BR /&gt;
the report output looks like this:&lt;BR /&gt;
01/15/2020 07:45:00 +0000, search_name=BT_COUNTRY_TOTAL_SHP, search_now=1579075200.000, info_min_time=1579071600.000, info_max_time=1579075200.000, info_search_time=1579075209.762, AE=2, AU=5, BG=0, CH=0, CM=0, CN=3, CZ=4, FI=1, FR=1, GR=1, HK=2, HU=0, IE=0, IN=0, IQ=0, IT=2, JP=2, KR=1, KW=1, KZ=0, LT=0, MX=12, NG=1, NO=0, NZ=2, PL=0, PT=1, RO=3, RU=1, SA=0, SE=0, SG=1, SI=2, TR=13, US=17, VN=0, ZA=1, report="BT_COUNTRY_TOTAL_SHP"&lt;/P&gt;

&lt;P&gt;Moving to dashboard, i don't know what is the best strategy to make country a dynamic checkbox that will sum up via timechart. &lt;/P&gt;

&lt;P&gt;unlike in region, we have 251 countries define in total.&lt;BR /&gt;
in region, i use this for my dashboard:&lt;/P&gt;

&lt;P&gt;for input i define it like this: but i had to REX all the region &lt;BR /&gt;
input id="region_id" type="checkbox" token="region"&lt;BR /&gt;
Select Region&lt;BR /&gt;
choice value="sum(AM) as "AM""&lt;BR /&gt;
choice value="sum(AP) as "AP""&lt;/P&gt;

&lt;P&gt;index=*ocnt_summary source=$BTYPE2$&lt;BR /&gt;
| rex "AM=(?&amp;lt;AM&amp;gt;\d+)"&lt;BR /&gt;
| rex "AP=(?&amp;lt;AP&amp;gt;\d+)" &lt;BR /&gt;
| rex "CN=(?&amp;lt;CN&amp;gt;\d+)" &lt;BR /&gt;
| rex "EU=(?&amp;lt;EU&amp;gt;\d+)" &lt;BR /&gt;
| rex "ME=(?&amp;lt;ME&amp;gt;\d+)" &lt;BR /&gt;
| rex "SB=(?&amp;lt;SB&amp;gt;\d+)" &lt;BR /&gt;
| timechart span=$span$ $region$&lt;/P&gt;

&lt;P&gt;For country, aside from during REX for all the country, I don't know if I have any other options. &lt;BR /&gt;
HELP! &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487540#M31952</guid>
      <dc:creator>chiennylin</dc:creator>
      <dc:date>2020-09-30T03:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Multiple dynamic input such as country</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487541#M31953</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Can you try this please, i simulate your report with creating raw filed, and then i extract country value, You can copy and past this request :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="01/15/2020 07:45:00 +0000, search_name=BT_COUNTRY_TOTAL_SHP, search_now=1579075200.000, info_min_time=1579071600.000, info_max_time=1579075200.000, info_search_time=1579075209.762, AE=2, AU=5, BG=0, CH=0, CM=0, CN=3, CZ=4, FI=1, FR=1, GR=1, HK=2, HU=0, IE=0, IN=0, IQ=0, IT=2, JP=2, KR=1, KW=1, KZ=0, LT=0, MX=12, NG=1, NO=0, NZ=2, PL=0, PT=1, RO=3, RU=1, SA=0, SE=0, SG=1, SI=2, TR=13, US=17, VN=0, ZA=1, report=\"BT_COUNTRY_TOTAL_SHP"
| rex field=raw max_match=0 "(?&amp;lt;country&amp;gt;\w{2}\=\d+)"
| table country
| mvexpand country
| rex field=country max_match=0 "(?&amp;lt;country&amp;gt;\w{2})=(?&amp;lt;value&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jan 2020 13:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487541#M31953</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2020-01-15T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Multiple dynamic input such as country</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487542#M31954</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="01/15/2020 07:45:00 +0000, search_name=BT_COUNTRY_TOTAL_SHP, search_now=1579075200.000, info_min_time=1579071600.000, info_max_time=1579075200.000, info_search_time=1579075209.762, AE=2, AU=5, BG=0, CH=0, CM=0, CN=3, CZ=4, FI=1, FR=1, GR=1, HK=2, HU=0, IE=0, IN=0, IQ=0, IT=2, JP=2, KR=1, KW=1, KZ=0, LT=0, MX=12, NG=1, NO=0, NZ=2, PL=0, PT=1, RO=3, RU=1, SA=0, SE=0, SG=1, SI=2, TR=13, US=17, VN=0, ZA=1, report=\"BT_COUNTRY_TOTAL_SHP\"" 
| kv
| rex "(?&amp;lt;time&amp;gt;\d{2}/\d{2}/\d{4} \d{2}:\d{2}:\d{2} \+\d+)"
| eval _time=strptime(time,"%m/%d/%Y %T %z")
| fields - _raw time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, @chiennylin&lt;BR /&gt;
try &lt;CODE&gt;kv&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 13:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487542#M31954</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-15T13:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Multiple dynamic input such as country</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487543#M31955</link>
      <description>&lt;P&gt;Thanks! this works perfectly!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dealing-with-Multiple-dynamic-input-such-as-country/m-p/487543#M31955</guid>
      <dc:creator>chiennylin</dc:creator>
      <dc:date>2020-01-16T09:08:22Z</dc:date>
    </item>
  </channel>
</rss>

