<?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: Why don't my dynamic titles for month names work? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318079#M164677</link>
    <description>&lt;P&gt;I am on Enterprise 6.4. I have tried a different code also and have combined both in the following example. The example I found with the giraffe works but I cant get it to generate previous month.&lt;/P&gt;

&lt;P&gt;TimeTestTakeThree&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="text" token="newname"&amp;gt;       
   &amp;lt;label&amp;gt;labelrino&amp;lt;/label&amp;gt;
   &amp;lt;default&amp;gt;giraffe&amp;lt;/default&amp;gt;       
   &amp;lt;change&amp;gt;         
     &amp;lt;eval token="Ucase"&amp;gt;upper('value')&amp;lt;/eval&amp;gt;
   &amp;lt;eval token="leno"&amp;gt;len('value')&amp;lt;/eval&amp;gt;
   &amp;lt;/change&amp;gt;



 &amp;lt;html&amp;gt;
   &amp;lt;p&amp;gt;Raw Entry: &amp;lt;b&amp;gt;$newname$&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
   &amp;lt;p&amp;gt;Upper(raw):&amp;lt;b&amp;gt;$Ucase$&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
  &amp;lt;p&amp;gt;Length(raw): &amp;lt;b&amp;gt;$leno$&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/html&amp;gt;



 &amp;lt;eval token="last_month"&amp;gt;strftime(relative_time(time(), "-1mon"), "%b")&amp;lt;/eval&amp;gt;


 &amp;lt;panel&amp;gt;
   &amp;lt;title&amp;gt;$last_month$&amp;lt;/title&amp;gt;
 &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Dec 2017 19:34:07 GMT</pubDate>
    <dc:creator>c0rrinn3</dc:creator>
    <dc:date>2017-12-05T19:34:07Z</dc:date>
    <item>
      <title>Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318073#M164671</link>
      <description>&lt;P&gt;I have tried to pass a token into a panel title from a search that creates month names for last month and the month before that. I have tried using CDATA and just $xxxx$ in the title. Hellllp!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 22:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318073#M164671</guid>
      <dc:creator>c0rrinn3</dc:creator>
      <dc:date>2017-12-01T22:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318074#M164672</link>
      <description>&lt;P&gt;Post your XML.  This is totally doable and you are probably missing something very basic.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 03:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318074#M164672</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-02T03:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318075#M164673</link>
      <description>&lt;P&gt;Check out this app:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 03:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318075#M164673</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-02T03:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318076#M164674</link>
      <description>&lt;P&gt;No need for a search to do that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;eval token="last_month"&amp;gt;strftime(relative_time(time(), "-1mon"), "%b")&amp;lt;/eval&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;$last_month$&amp;lt;/title&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Dec 2017 18:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318076#M164674</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2017-12-02T18:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318077#M164675</link>
      <description>&lt;P&gt;I can post my code but, the code above doesnt work for me either. Odd??&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 17:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318077#M164675</guid>
      <dc:creator>c0rrinn3</dc:creator>
      <dc:date>2017-12-05T17:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318078#M164676</link>
      <description>&lt;P&gt;@c0rrinn3, &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Which version of Splunk Are you on?&lt;/CODE&gt;&lt;BR /&gt;
 section in Simple XML Dashboard is available from Splunk Enterprise 6.5 onward.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Are you adding token to title from UI Panel Edit or Simple XML code?&lt;/CODE&gt;&lt;BR /&gt;
If you add from UI Panel Edit then &lt;CODE&gt;$&lt;/CODE&gt; sign for token will escape as &lt;CODE&gt;$$&lt;/CODE&gt; and it will be treated as string rather than token.&lt;/P&gt;

&lt;P&gt;Kindly share you current code which is not working and your Splunk Enteprise version as well.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 18:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318078#M164676</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-05T18:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318079#M164677</link>
      <description>&lt;P&gt;I am on Enterprise 6.4. I have tried a different code also and have combined both in the following example. The example I found with the giraffe works but I cant get it to generate previous month.&lt;/P&gt;

&lt;P&gt;TimeTestTakeThree&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="text" token="newname"&amp;gt;       
   &amp;lt;label&amp;gt;labelrino&amp;lt;/label&amp;gt;
   &amp;lt;default&amp;gt;giraffe&amp;lt;/default&amp;gt;       
   &amp;lt;change&amp;gt;         
     &amp;lt;eval token="Ucase"&amp;gt;upper('value')&amp;lt;/eval&amp;gt;
   &amp;lt;eval token="leno"&amp;gt;len('value')&amp;lt;/eval&amp;gt;
   &amp;lt;/change&amp;gt;



 &amp;lt;html&amp;gt;
   &amp;lt;p&amp;gt;Raw Entry: &amp;lt;b&amp;gt;$newname$&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
   &amp;lt;p&amp;gt;Upper(raw):&amp;lt;b&amp;gt;$Ucase$&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
  &amp;lt;p&amp;gt;Length(raw): &amp;lt;b&amp;gt;$leno$&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/html&amp;gt;



 &amp;lt;eval token="last_month"&amp;gt;strftime(relative_time(time(), "-1mon"), "%b")&amp;lt;/eval&amp;gt;


 &amp;lt;panel&amp;gt;
   &amp;lt;title&amp;gt;$last_month$&amp;lt;/title&amp;gt;
 &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318079#M164677</guid>
      <dc:creator>c0rrinn3</dc:creator>
      <dc:date>2017-12-05T19:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318080#M164678</link>
      <description>&lt;P&gt;That example I posted isnt the one I meant to post.  the bottom panel should be the one from above.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318080#M164678</guid>
      <dc:creator>c0rrinn3</dc:creator>
      <dc:date>2017-12-05T19:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my dynamic titles for month names work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318081#M164679</link>
      <description>&lt;P&gt;I got it to work but it uses input time. The time will always be -1mon and -2mon. How can I hide that so its not seen?&lt;/P&gt;

&lt;P&gt;test&lt;BR /&gt;
     &lt;FIELDSET submitbutton="false" autorun="true"&gt;&lt;BR /&gt;
        &lt;INPUT type="time" searchwhenchanged="true" token="last_month" /&gt;&lt;BR /&gt;
         &lt;CHANGE&gt;&lt;BR /&gt;
             &lt;EVAL token="last_month"&gt;strftime(relative_time(time(), "-1mon"), "%B %Y")&lt;/EVAL&gt;&lt;BR /&gt;
             &lt;EVAL token="twoMonths"&gt;strftime(relative_time(time(), "-2mon"), "%B %Y")&lt;/EVAL&gt;&lt;BR /&gt;
         &lt;/CHANGE&gt;&lt;BR /&gt;
        &lt;BR /&gt;
    &lt;/FIELDSET&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
   &amp;lt;html&amp;gt; &amp;lt;p&amp;gt;&amp;lt;center&amp;gt; &amp;lt;b&amp;gt;&amp;lt;font size="5"&amp;gt;$last_month$ Count&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;panel&amp;gt;
  &amp;lt;html&amp;gt;   &amp;lt;p&amp;gt;&amp;lt;center&amp;gt; &amp;lt;b&amp;gt;&amp;lt;font size="5"&amp;gt;$twoMonths$ Count&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/p&amp;gt; &amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-dynamic-titles-for-month-names-work/m-p/318081#M164679</guid>
      <dc:creator>c0rrinn3</dc:creator>
      <dc:date>2020-09-29T17:05:43Z</dc:date>
    </item>
  </channel>
</rss>

