<?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 am I getting a scheduled search &amp;quot;datetime strftime() error&amp;quot;, and some panels fail to render in the scheduled PDF email? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260518#M16395</link>
    <description>&lt;P&gt;Experiencing the same issue. Also for me it affects only my pdf generation.&lt;/P&gt;

&lt;P&gt;Couldn't find any workaround. I eventually removed the time field from the report.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2016 09:53:22 GMT</pubDate>
    <dc:creator>kfir_fireglass</dc:creator>
    <dc:date>2016-11-15T09:53:22Z</dc:date>
    <item>
      <title>Why am I getting a scheduled search "datetime strftime() error", and some panels fail to render in the scheduled PDF email?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260514#M16391</link>
      <description>&lt;P&gt;I have a dashboard which loads a bunch of scheduled reports. This dashboard is emailed to me via pdf at 6 pm everyday. The dashboard loads/works fine, however, the pdf doesn't show all the panels.&lt;/P&gt;

&lt;P&gt;The first panel &lt;STRONG&gt;displays correctly&lt;/STRONG&gt;:&lt;BR /&gt;
Here is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log* type=Usage earliest=@d-6h latest=@d+18h | fields b,idx,_time   | timechart span=1h sum(b) by idx  | foreach * [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Second panel &lt;STRONG&gt;doesn't display at all, with no error.&lt;/STRONG&gt; It's just blank.&lt;BR /&gt;
Here is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log* type=Usage earliest=@d-6h latest=@d+18h | fields b,idx,_time   | timechart span=1h sum(b) by idx  | addcoltotals | fillnull value=TOTAL | search _time=TOTAL |  foreach * [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The final panel &lt;STRONG&gt;has the following error&lt;/STRONG&gt;: "year=1 is before 1900; the datetime strftime() methods require year &amp;gt;= 1900"&lt;BR /&gt;
Here is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log* type=Usage earliest=@d-6h latest=@d+18h | fields b,idx,_time   | timechart span=1h sum(b) by idx  | addcoltotals | fillnull value=TOTAL | foreach * [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is making the last two panels fail to render via the scheduled pdf?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 23:08:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260514#M16391</guid>
      <dc:creator>ejharts2015</dc:creator>
      <dc:date>2015-12-02T23:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting a scheduled search "datetime strftime() error", and some panels fail to render in the scheduled PDF email?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260515#M16392</link>
      <description>&lt;P&gt;It looks like convert  is having issues... &lt;/P&gt;

&lt;P&gt;add this to your query and pdf export works fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename _time as Date | convert ctime(Date) timeformat="%Y-%m-%d"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Dec 2015 12:59:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260515#M16392</guid>
      <dc:creator>ggiessen</dc:creator>
      <dc:date>2015-12-03T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting a scheduled search "datetime strftime() error", and some panels fail to render in the scheduled PDF email?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260516#M16393</link>
      <description>&lt;P&gt;It's very weird that that worked... but thanks! It was driving me crazy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 16:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260516#M16393</guid>
      <dc:creator>ejharts2015</dc:creator>
      <dc:date>2015-12-04T16:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting a scheduled search "datetime strftime() error", and some panels fail to render in the scheduled PDF email?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260517#M16394</link>
      <description>&lt;P&gt;I had the same issue on a customers site this morning.&lt;/P&gt;

&lt;P&gt;This was just after an upgrade from 6.2.x to 6.3.x, it appears that if the _time field is present on some results then it cannot be null value(or possibly non-date value) on other results.  This empty/null value was caused by the &lt;CODE&gt;addtotals&lt;/CODE&gt; command for us.&lt;/P&gt;

&lt;P&gt;This only appears to affect the pdf generation, the screen rendered fine.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 13:45:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260517#M16394</guid>
      <dc:creator>darrend</dc:creator>
      <dc:date>2016-03-10T13:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting a scheduled search "datetime strftime() error", and some panels fail to render in the scheduled PDF email?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260518#M16395</link>
      <description>&lt;P&gt;Experiencing the same issue. Also for me it affects only my pdf generation.&lt;/P&gt;

&lt;P&gt;Couldn't find any workaround. I eventually removed the time field from the report.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 09:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260518#M16395</guid>
      <dc:creator>kfir_fireglass</dc:creator>
      <dc:date>2016-11-15T09:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting a scheduled search "datetime strftime() error", and some panels fail to render in the scheduled PDF email?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260519#M16396</link>
      <description>&lt;P&gt;Same problem here, the addtotals command caused the error message above when exporting to PDF. Workaround: simply renaming the _time field with a different name (I used "Month") in the final table. It works! &lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 13:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260519#M16396</guid>
      <dc:creator>RobertaRimondo</dc:creator>
      <dc:date>2018-05-15T13:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting a scheduled search "datetime strftime() error", and some panels fail to render in the scheduled PDF email?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260520#M16397</link>
      <description>&lt;P&gt;@ejharts2015&lt;BR /&gt;
how did you schedule email of dashboard pdf?&lt;BR /&gt;
I want to schedule pdf delivery of dashboard using one of the conf files. But unable to do so. Can you help?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 03:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260520#M16397</guid>
      <dc:creator>kira01</dc:creator>
      <dc:date>2020-03-27T03:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting a scheduled search "datetime strftime() error", and some panels fail to render in the scheduled PDF email?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260521#M16398</link>
      <description>&lt;P&gt;What issue are you having with it?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 13:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-am-I-getting-a-scheduled-search-quot-datetime-strftime-error/m-p/260521#M16398</guid>
      <dc:creator>ejharts2015</dc:creator>
      <dc:date>2020-04-09T13:33:48Z</dc:date>
    </item>
  </channel>
</rss>

