<?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: need infomation about xml in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385641#M25262</link>
    <description>&lt;P&gt;For the radio input &lt;CODE&gt;period_tok&lt;/CODE&gt; the &lt;CODE&gt;$label$&lt;/CODE&gt; can be used to access Label data of the radio for example &lt;CODE&gt;Last 24 Hours&lt;/CODE&gt; and &lt;CODE&gt;$value$&lt;/CODE&gt; will access the Value i.e. &lt;CODE&gt;-24h@h&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;choice value="-24h@h"&amp;gt;Last 24 Hours&amp;lt;/choice&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should try to get &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples App&lt;/A&gt; to try out and understand these examples and dashboard tips and tricks.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jun 2018 11:18:07 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-06-16T11:18:07Z</dc:date>
    <item>
      <title>need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385636#M25257</link>
      <description>&lt;P&gt;in this program :-&lt;/P&gt;

&lt;P&gt;Use tokens with input choices to capture input labels and values&lt;BR /&gt;
    &lt;INIT&gt;&lt;BR /&gt;
      &lt;SET token="date_label"&gt;Last 7 Days&lt;/SET&gt;&lt;BR /&gt;
      &lt;SET token="earliest_tok"&gt;-7d@d&lt;/SET&gt;&lt;BR /&gt;
    &lt;/INIT&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="radio" token="period_tok"&amp;gt;
  &amp;lt;label&amp;gt;Select a time range&amp;lt;/label&amp;gt;
  &amp;lt;choice value="-24h@h"&amp;gt;Last 24 Hours&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="-7d@d"&amp;gt;Last 7 Days&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="-30d@d"&amp;gt;Last 30 Days&amp;lt;/choice&amp;gt;
  &amp;lt;default&amp;gt;Last 7 Days&amp;lt;/default&amp;gt;

  &amp;lt;change&amp;gt;
      &amp;lt;!-- use predefined input tokens to set --&amp;gt;
      &amp;lt;!-- tokens for the selected label and value --&amp;gt;
      &amp;lt;set token="date_label"&amp;gt;$label$&amp;lt;/set&amp;gt;
      &amp;lt;set token="earliest_tok"&amp;gt;$value$&amp;lt;/set&amp;gt;
  &amp;lt;/change&amp;gt;

&amp;lt;/input&amp;gt;



&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Conditional Inputs&amp;lt;/title&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;!-- Display selected label in the title --&amp;gt;
    &amp;lt;title&amp;gt;Source Type by $date_label$&amp;lt;/title&amp;gt;

    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index = _internal | timechart count by sourcetype&amp;lt;/query&amp;gt;
      &amp;lt;!-- use the value of earliest_tok --&amp;gt;
      &amp;lt;!-- to set the time range         --&amp;gt;
      &amp;lt;earliest&amp;gt;$earliest_tok$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;

    &amp;lt;option name="charting.axisY.scale"&amp;gt;log&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleX.text"&amp;gt;Time period&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleY.text"&amp;gt;Events&amp;lt;/option&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my question as below :-&lt;BR /&gt;
1) &lt;BR /&gt;
      &lt;SET token="date_label"&gt;Last 7 Days&lt;/SET&gt;&lt;BR /&gt;
      &lt;SET token="earliest_tok"&gt;-7d@d&lt;/SET&gt;&lt;BR /&gt;
        , what is use  of it .&lt;BR /&gt;
2) token="period_tok "   what is use of it and it is for what function .&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 22:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385636#M25257</guid>
      <dc:creator>lmjoin</dc:creator>
      <dc:date>2018-06-15T22:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385637#M25258</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120319"&gt;@lmjoin&lt;/a&gt;,&lt;/P&gt;

&lt;H2&gt;&lt;STRONG&gt;1 . Last 7 Days -7d@d , what is use of it :&lt;/STRONG&gt;&lt;/H2&gt;

&lt;P&gt;On Jun 16th, you decide to run a search at 10:00&lt;/P&gt;

&lt;P&gt;If you specify earliest=-7d, the search goes back exactly seven days, starting at 10:00 on Jun 9th.&lt;BR /&gt;
If you specify earliest=-7d@d, the search goes back to seven days and snaps to the beginning of the day. The search looks for events starting from 00:00 on Jun 9th.&lt;/P&gt;

&lt;P&gt;Refer &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.1/Search/Specifytimemodifiersinyoursearch" target="_blank"&gt;Time modifiers&lt;/A&gt; for more information&lt;/P&gt;

&lt;H2&gt;&lt;STRONG&gt;2 . token="period_tok " what is use of it and it is for what function :&lt;/STRONG&gt;&lt;/H2&gt;

&lt;P&gt;Based on the radio button selected, the value of that time modifier is assigned to the token period_tok and you could use this token in other part of the dashboard searches as a variable $period_tok$&lt;BR /&gt;
For e.g. if you select &lt;STRONG&gt;Last 24 Hours&lt;/STRONG&gt;, then period_tok will be assigned the value &lt;STRONG&gt;-24h@h&lt;/STRONG&gt; and you could use this in other searches &lt;CODE&gt;index=your index earliest=$period_tok$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Please refer &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/7.0.3/Viz/tokens" target="_blank"&gt;Token Usage&lt;/A&gt; for further reference.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385637#M25258</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T20:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385638#M25259</link>
      <description>&lt;P&gt;Thanks for reply &lt;/P&gt;

&lt;P&gt;Need to understand &lt;BR /&gt;
   $label$&lt;BR /&gt;
       &lt;SET token="earliest_tok"&gt;$value$&lt;/SET&gt;     &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;.   using value from  $period_tok$ &lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2018 09:35:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385638#M25259</guid>
      <dc:creator>lmjoin</dc:creator>
      <dc:date>2018-06-16T09:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385639#M25260</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;set token="date_label"&amp;gt;$label$&amp;lt;/set&amp;gt;
   &amp;lt;set token="earliest_tok"&amp;gt;$value$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Jun 2018 09:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385639#M25260</guid>
      <dc:creator>lmjoin</dc:creator>
      <dc:date>2018-06-16T09:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385640#M25261</link>
      <description>&lt;P&gt;using value from $period_tok$ &lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2018 09:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385640#M25261</guid>
      <dc:creator>lmjoin</dc:creator>
      <dc:date>2018-06-16T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385641#M25262</link>
      <description>&lt;P&gt;For the radio input &lt;CODE&gt;period_tok&lt;/CODE&gt; the &lt;CODE&gt;$label$&lt;/CODE&gt; can be used to access Label data of the radio for example &lt;CODE&gt;Last 24 Hours&lt;/CODE&gt; and &lt;CODE&gt;$value$&lt;/CODE&gt; will access the Value i.e. &lt;CODE&gt;-24h@h&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;choice value="-24h@h"&amp;gt;Last 24 Hours&amp;lt;/choice&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should try to get &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples App&lt;/A&gt; to try out and understand these examples and dashboard tips and tricks.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2018 11:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385641#M25262</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-16T11:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385642#M25263</link>
      <description>&lt;P&gt;@lmjoin , do you need any further assistance?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 06:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385642#M25263</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-06-20T06:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385643#M25264</link>
      <description>&lt;P&gt;Thanks &lt;BR /&gt;
done &lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385643#M25264</guid>
      <dc:creator>lmjoin</dc:creator>
      <dc:date>2018-06-21T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: need infomation about xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385644#M25265</link>
      <description>&lt;P&gt;Hi @lmjoin,&lt;BR /&gt;
Glad to hear. Please accept as answer to close the thread&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/need-infomation-about-xml/m-p/385644#M25265</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-06-21T13:40:50Z</dc:date>
    </item>
  </channel>
</rss>

