<?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: search every day in last week at specific times in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35315#M7747</link>
    <description>&lt;P&gt;well this probably would work, but now the problem appears to be that the query isn't giving me the results i would expect.  It should pull out two fields, TotalEmailSent and TotalEmailsToSend and once charted both of these numbers should match.  For some reason they aren't.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2011 04:34:11 GMT</pubDate>
    <dc:creator>gnovak</dc:creator>
    <dc:date>2011-02-02T04:34:11Z</dc:date>
    <item>
      <title>search every day in last week at specific times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35312#M7744</link>
      <description>&lt;P&gt;hello again.&lt;/P&gt;

&lt;P&gt;I have a search where I'd like to go back 1 week and then search the same time on each day during that week and return results.&lt;/P&gt;

&lt;P&gt;So far I have been looking at all of the time range modifiers and still haven't come up with exactly what I am looking for. &lt;/P&gt;

&lt;P&gt;My search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="Cron_SendNotificationEmail" OR sourcetype="Cron_CheckRegistrarThreshold"  
(source="*asia*" OR source="*info*" OR source="*org*" OR source="*mobi*" OR source="*me*" OR source="*aero*" OR source="*cctld*") 
earliest=-1d@d latest=-1d@d+23h+55m 
| rex field=_raw "send_to_email ?\[(?P&amp;lt;send_to_email&amp;gt;\S+)\]"
| rex "(?P&amp;lt;inserting_a_record&amp;gt;Inserting a record.*)" 
| search inserting_a_record="*" OR send_to_email="*" 
| timechart count(inserting_a_record) as TotalEmailsToSend count(send_to_email) as TotalEmailsSent`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;obviously i don't have the right time modifiers in the search right now, but i'm trying to figure it out.  so far i think i could start with "startdaysago=7" but after that I'm not sure how to tell the search to search on every day after going back 7 days at the times I would like which is:&lt;/P&gt;

&lt;P&gt;00:00 to 23:55&lt;/P&gt;

&lt;P&gt;Help?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2011 00:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35312#M7744</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-01-29T00:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: search every day in last week at specific times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35313#M7745</link>
      <description>&lt;P&gt;also keep in mind this search makes a chart on the dashboard.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2011 00:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35313#M7745</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-01-29T00:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: search every day in last week at specific times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35314#M7746</link>
      <description>&lt;P&gt;If I get you right you'd like to dismiss events being generated the last five minutes before midnight every day. Would something like this do? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... earliest=-7d@d NOT (day_hour=23 AND day_minute&amp;gt;=55) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Jan 2011 18:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35314#M7746</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2011-01-31T18:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: search every day in last week at specific times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35315#M7747</link>
      <description>&lt;P&gt;well this probably would work, but now the problem appears to be that the query isn't giving me the results i would expect.  It should pull out two fields, TotalEmailSent and TotalEmailsToSend and once charted both of these numbers should match.  For some reason they aren't.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2011 04:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35315#M7747</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2011-02-02T04:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: search every day in last week at specific times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35316#M7748</link>
      <description>&lt;P&gt;I am still messing with this query, but I don't want it to include any results from the current day at all.  I only want the last 7 days NOT including the present day. &lt;/P&gt;

&lt;P&gt;sourcetype="Cron_CheckRegistrarThreshold" (source="&lt;EM&gt;asia&lt;/EM&gt;" OR source="&lt;EM&gt;info&lt;/EM&gt;" OR source="&lt;EM&gt;org&lt;/EM&gt;" OR source="&lt;EM&gt;mobi&lt;/EM&gt;" OR source="&lt;EM&gt;me&lt;/EM&gt;" OR source="&lt;EM&gt;aero&lt;/EM&gt;" OR source="&lt;EM&gt;cctld&lt;/EM&gt;") earliest=-7d@d NOT (day_hour=23 AND day_minute&amp;gt;=55) | rex "(?P&lt;INSERTING_A_RECORD&gt;Inserting a record.&lt;EM&gt;)" max_match=1000 | search inserting_a_record="&lt;/EM&gt;" | timechart count(inserting_a_record) as TotalEmailsToSend&lt;/INSERTING_A_RECORD&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35316#M7748</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2020-09-28T09:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: search every day in last week at specific times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35317#M7749</link>
      <description>&lt;P&gt;I think I have an idea of where you're trying to go. Do you think you could add a table of what you'd like the tabular output of the search to be?  ie what are the rows and columns you want to end up with?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2011 11:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35317#M7749</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-02-02T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: search every day in last week at specific times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35318#M7750</link>
      <description>&lt;P&gt;you got the timechart syntax wrong.... should be something like | timechart count(eval(inserting_a_record=*)) ....&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35318#M7750</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2020-09-28T09:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: search every day in last week at specific times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35319#M7751</link>
      <description>&lt;P&gt;earliest=-7d@d latest=@d NOT (day_hour=....&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2011 19:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-every-day-in-last-week-at-specific-times/m-p/35319#M7751</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2011-02-02T19:56:05Z</dc:date>
    </item>
  </channel>
</rss>

