<?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 to convert time based on selected time span token? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331065#M21434</link>
    <description>&lt;P&gt;thanks @ p_gurav &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 05:53:39 GMT</pubDate>
    <dc:creator>auaave</dc:creator>
    <dc:date>2018-03-07T05:53:39Z</dc:date>
    <item>
      <title>How to convert time based on selected time span token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331061#M21430</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I am creating a dashboard with time span token $bin$ = 1h or 1w or 1d or 1m. How can I convert the time based on the selected token? 1h - %H , 1d - %d , 1w - %V , 1m - %b&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search $group$
| bin _time span=$bin$ 
| eval Time=strftime(_time,"%V") 
| chart count as eventcount over DESCRIPTION by Time 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Mar 2018 03:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331061#M21430</guid>
      <dc:creator>auaave</dc:creator>
      <dc:date>2018-03-06T03:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert time based on selected time span token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331062#M21431</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This link will helpful for you:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/576752/how-to-compare-time-range-picker-to-change-span-of.html"&gt;https://answers.splunk.com/answers/576752/how-to-compare-time-range-picker-to-change-span-of.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 06:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331062#M21431</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-03-06T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert time based on selected time span token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331063#M21432</link>
      <description>&lt;P&gt;Is it like this?&lt;BR /&gt;
Please add CASE.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="span"&amp;gt;
  &amp;lt;label&amp;gt;XXX&amp;lt;/label&amp;gt;
  &amp;lt;choice value="1h"&amp;gt;1h&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="1d"&amp;gt;1d&amp;lt;/choice&amp;gt;
  &amp;lt;change&amp;gt;
    &amp;lt;eval token="time_format"&amp;gt;case($span$="1h","%H",$span$="1d","%d")&amp;lt;/eval&amp;gt;
  &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;|eval Time=strftime(_time,"$time_format$")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331063#M21432</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-29T18:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert time based on selected time span token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331064#M21433</link>
      <description>&lt;P&gt;@HiroshiSatoh, this is exactly what I need. Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 05:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331064#M21433</guid>
      <dc:creator>auaave</dc:creator>
      <dc:date>2018-03-07T05:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert time based on selected time span token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331065#M21434</link>
      <description>&lt;P&gt;thanks @ p_gurav &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 05:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-time-based-on-selected-time-span-token/m-p/331065#M21434</guid>
      <dc:creator>auaave</dc:creator>
      <dc:date>2018-03-07T05:53:39Z</dc:date>
    </item>
  </channel>
</rss>

