<?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: Stamping dates onto report PDFs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Stamping-dates-onto-report-PDFs/m-p/23915#M3761</link>
    <description>&lt;P&gt;I can't figure out a simple way to do this - but there is a way to show the date range of events that are covered by a search.  Assume that your original search looked like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchstuffhere
| stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add this to include the date range&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchstuffhere
| stats earliest(_time) as From latest(_time) as To count as "Number of Transactions"
| fieldformat From=strftime(From,"%x %X") 
| fieldformat To=strftime(To,"%x %X") 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 05 Aug 2012 02:54:41 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-08-05T02:54:41Z</dc:date>
    <item>
      <title>Stamping dates onto report PDFs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Stamping-dates-onto-report-PDFs/m-p/23914#M3760</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I'm reasonably new to Splunk. I've created a scheduled search which runs weekly and links to a report showing the number of transactions we made last week. I want to put the "from" and "to" dates of that week in the header of the report, so that it is clear which week the report relates to. All I can get at the moment is the day that the report is printed on. Can anyone help?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 12:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Stamping-dates-onto-report-PDFs/m-p/23914#M3760</guid>
      <dc:creator>watsm10</dc:creator>
      <dc:date>2012-08-02T12:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stamping dates onto report PDFs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Stamping-dates-onto-report-PDFs/m-p/23915#M3761</link>
      <description>&lt;P&gt;I can't figure out a simple way to do this - but there is a way to show the date range of events that are covered by a search.  Assume that your original search looked like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchstuffhere
| stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add this to include the date range&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchstuffhere
| stats earliest(_time) as From latest(_time) as To count as "Number of Transactions"
| fieldformat From=strftime(From,"%x %X") 
| fieldformat To=strftime(To,"%x %X") 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Aug 2012 02:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Stamping-dates-onto-report-PDFs/m-p/23915#M3761</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-08-05T02:54:41Z</dc:date>
    </item>
  </channel>
</rss>

