<?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: Time format week %V variable not working on &amp;lt;init&amp;gt; tag xml in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-format-week-V-variable-not-working-on-lt-init-gt-tag-xml/m-p/700791#M57459</link>
    <description>&lt;P&gt;I don't think you are doing anything wrong, it looks like a bug to me.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2024 16:19:47 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-10-02T16:19:47Z</dc:date>
    <item>
      <title>Time format week %V variable not working on &lt;init&gt; tag xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-format-week-V-variable-not-working-on-lt-init-gt-tag-xml/m-p/700787#M57458</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to initialize a token with the week number value of today.&amp;nbsp;According to the documentation, &lt;A href="https://docs.splunk.com/Documentation/SCS/current/Search/Timevariables" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SCS/current/Search/Timevariables&lt;/A&gt;, the variable to use to get the week of the year (1 to 52) is&amp;nbsp;&lt;STRONG&gt;%V&lt;/STRONG&gt;. This works on any search query, but this is not working when used in a &amp;lt;init&amp;gt; tag of a dashboard. This is my &amp;lt;init&amp;gt;:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="dark"&amp;gt;
&amp;lt;init&amp;gt;
&amp;lt;eval token="todayYear"&amp;gt;strftime(now(), "%Y")&amp;lt;/eval&amp;gt;
&amp;lt;eval token="todayMonth"&amp;gt;strftime(now(), "%m")&amp;lt;/eval&amp;gt;
&amp;lt;eval token="todayWeek"&amp;gt;strftime(now(), "%V")&amp;lt;/eval&amp;gt;
&amp;lt;eval token="yearToken"&amp;gt;strftime(now(), "%Y")&amp;lt;/eval&amp;gt;
&amp;lt;eval token="monthToken"&amp;gt;strftime(now(), "%m")&amp;lt;/eval&amp;gt;
&amp;lt;/init&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;All these tokens are well initialized except to&amp;nbsp;&lt;STRONG&gt;todayWeek&lt;/STRONG&gt;, which refers to %V variable, which take no value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 16:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Time-format-week-V-variable-not-working-on-lt-init-gt-tag-xml/m-p/700787#M57458</guid>
      <dc:creator>aoter</dc:creator>
      <dc:date>2024-10-02T16:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time format week %V variable not working on &lt;init&gt; tag xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Time-format-week-V-variable-not-working-on-lt-init-gt-tag-xml/m-p/700791#M57459</link>
      <description>&lt;P&gt;I don't think you are doing anything wrong, it looks like a bug to me.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 16:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Time-format-week-V-variable-not-working-on-lt-init-gt-tag-xml/m-p/700791#M57459</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-02T16:19:47Z</dc:date>
    </item>
  </channel>
</rss>

