<?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 schedule a report email with a CSV attachment of search results every 4 hours? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181312#M3916</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am bit confused can you tell me&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;0 */4 * * *&lt;/CODE&gt; - does this cron help to get an email every 4 hours? &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
    <pubDate>Sun, 28 Jun 2015 14:42:03 GMT</pubDate>
    <dc:creator>Laya123</dc:creator>
    <dc:date>2015-06-28T14:42:03Z</dc:date>
    <item>
      <title>How to schedule a report email with a CSV attachment of search results every 4 hours?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181309#M3913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can any one help me on how to schedule a report with an attachment (csv) and email to my boss every 4 hours with last 4 hours of search results? I used cron expression &lt;CODE&gt;0 */4 * * *&lt;/CODE&gt;, but it's not generating a report every 4 hours.&lt;/P&gt;

&lt;P&gt;Example: Email a report for every 4 hours; first email has to be sent at 4am for the results of last 4 hours (1am - 4am). The second email has to be sent at 8am for the results of 5am to 8am&lt;/P&gt;

&lt;P&gt;Please help me to do this&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 13:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181309#M3913</guid>
      <dc:creator>Laya123</dc:creator>
      <dc:date>2015-06-28T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule a report email with a CSV attachment of search results every 4 hours?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181310#M3914</link>
      <description>&lt;P&gt;The &lt;CODE&gt;cron&lt;/CODE&gt; syntax works like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.---------------- minute (0 - 59)
|  .------------- hour (0 - 23)
|  |  .---------- day of month (1 - 31)
|  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
|  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
|  |  |  |  |
*  *  *  *  *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To run your search every minute on 4 hour intervals (every minute within every 4th hour), use this &lt;CODE&gt;cron&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* */4 * * *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To run your search once every 4 hours (on the zero minute), use this &lt;CODE&gt;cron&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0 */4 * * *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also specify an enumerated list, if you need to drop off midnight (your example may mean this), like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0 4,8,12,16,20 * * *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Jun 2015 13:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181310#M3914</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-28T13:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule a report email with a CSV attachment of search results every 4 hours?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181311#M3915</link>
      <description>&lt;P&gt;Thanks for your immediate response&lt;/P&gt;

&lt;P&gt;it means email will go for every 4hours with last 4hours of results right&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 14:01:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181311#M3915</guid>
      <dc:creator>Laya123</dc:creator>
      <dc:date>2015-06-28T14:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule a report email with a CSV attachment of search results every 4 hours?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181312#M3916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am bit confused can you tell me&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;0 */4 * * *&lt;/CODE&gt; - does this cron help to get an email every 4 hours? &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 14:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181312#M3916</guid>
      <dc:creator>Laya123</dc:creator>
      <dc:date>2015-06-28T14:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule a report email with a CSV attachment of search results every 4 hours?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181313#M3917</link>
      <description>&lt;P&gt;Yes, &lt;CODE&gt;0 */4 * * *&lt;/CODE&gt; will run once every four hours, at zero minutes past 0, 4, 8, 12, 16, 20.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 17:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181313#M3917</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-28T17:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule a report email with a CSV attachment of search results every 4 hours?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181314#M3918</link>
      <description>&lt;P&gt;The "last 4 hours" part is controlled by the time specifier which should be &lt;CODE&gt;-4h@h&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 18:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181314#M3918</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-28T18:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to schedule a report email with a CSV attachment of search results every 4 hours?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181315#M3919</link>
      <description>&lt;P&gt;Please "Accept" this answer.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 05:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-schedule-a-report-email-with-a-CSV-attachment-of-search/m-p/181315#M3919</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-07T05:04:31Z</dc:date>
    </item>
  </channel>
</rss>

