<?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 command for work time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13009#M1123</link>
    <description>&lt;P&gt;Keep in mind that this is a new feature in Splunk 4.1.&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2010 03:23:26 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-05-12T03:23:26Z</dc:date>
    <item>
      <title>search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13002#M1116</link>
      <description>&lt;P&gt;i have one question
I want to search time
Daily from 9 am to 6:00 pm
How can to use search command ?&lt;/P&gt;

&lt;P&gt;Thank you for your help&lt;/P&gt;

&lt;P&gt;CT&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2010 16:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13002#M1116</guid>
      <dc:creator>shirolu</dc:creator>
      <dc:date>2010-05-06T16:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13003#M1117</link>
      <description>&lt;P&gt;hi ~ chris 
Thank you for your help
if everyday starttime 09:00:00 to endtime 18:0:00
How to use this search command&lt;/P&gt;

&lt;P&gt;CT&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2010 18:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13003#M1117</guid>
      <dc:creator>shirolu</dc:creator>
      <dc:date>2010-05-06T18:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13004#M1118</link>
      <description>&lt;P&gt;hi ~ chris &lt;/P&gt;

&lt;P&gt;I understand your explanation&lt;/P&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;

&lt;P&gt;CT&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2010 21:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13004#M1118</guid>
      <dc:creator>shirolu</dc:creator>
      <dc:date>2010-05-06T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13005#M1119</link>
      <description>&lt;P&gt;You can use relative time modifiers in your search term. For your specific question, for a work day of 9am to 6pm, you could specify the following:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;earliest=@d+9h latest=@d+18h&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2010 11:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13005#M1119</guid>
      <dc:creator>sajbutler</dc:creator>
      <dc:date>2010-05-07T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13006#M1120</link>
      <description>&lt;P&gt;If you want to search just one particular day, between 9am and 6pm, do as some others have suggested here and use the relative time syntax: &lt;/P&gt;

&lt;P&gt;In the TimeRangePicker pulldown, choose 'Custom time', then 'advanced', 
then in the two form fields that come up, enter on the left side: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;@d+9h 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and enter on the right side&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;@d+18h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However you have said you want to search this timerange &lt;STRONG&gt;every day&lt;/STRONG&gt;.  Someone else here has interpreted this to mean you want to run this search once every day as an alert. &lt;/P&gt;

&lt;P&gt;However you can search over several days or more but restrict your results to just events during working hours by using the date_hour field like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; date_hour&amp;gt;9 date_hour&amp;lt;18
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search can then be run over any timerange (like current business week), and it will match only events that occurred during working hours within that timerange. &lt;/P&gt;

&lt;P&gt;More docs and examples about time range arguments can be found here: &lt;A href="http://www.splunk.com/base/Documentation/4.1.2/User/ChangeTheTimeRangeOfYourSearch" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.2/User/ChangeTheTimeRangeOfYourSearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2010 23:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13006#M1120</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-05-09T23:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13007#M1121</link>
      <description>&lt;P&gt;Can you clarify whether you want to a) run your search once per day, and have it search over events from that particular workday, or b) run your search over several days and only match events between 9am and 6pm on those days. Both are possible and both paths are outlined in the answers below&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2010 23:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13007#M1121</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-05-09T23:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13008#M1122</link>
      <description>&lt;P&gt;it's much better to edit your original question or comment on someone's answer.  Posting a comment as an answer to your own question is a little weird - its best to delete this.&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2010 23:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13008#M1122</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-05-09T23:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13009#M1123</link>
      <description>&lt;P&gt;Keep in mind that this is a new feature in Splunk 4.1.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2010 03:23:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13009#M1123</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-05-12T03:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: search command for work time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13010#M1124</link>
      <description>&lt;P&gt;No answer here - I have the same question.  I changed the date range through the custom time dropdown box and that works.  It gives me events in the correct date range, but not the correct time range.  I then added the modifiers below to the query and I get no results.&lt;/P&gt;

&lt;P&gt;date_hour&amp;gt;9 date_hour&amp;lt;18&lt;/P&gt;

&lt;P&gt;Any suggestions?  Trying to limit my search to the previous 5 days between 5am and 9am.  I can get the previous 5 days through the dropdown box but I am unable to limit the time range.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2010 21:42:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-command-for-work-time/m-p/13010#M1124</guid>
      <dc:creator>jumpe1414</dc:creator>
      <dc:date>2010-07-21T21:42:37Z</dc:date>
    </item>
  </channel>
</rss>

