<?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 create a 14 day search for specific time range (02:00 - 06:00) only? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606101#M210777</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245806"&gt;@ashidhingra&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have the time_hour field, you could use a search like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-14d@d latest=@d (time_hour&amp;gt;1 time_hour&amp;lt;7)
| ...&lt;/LI-CODE&gt;&lt;P&gt;if you haven't this field, you have to extract it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-14d@d latest=@d 
| eval time_hour=strftime(_time,"H")
| where (time_hour&amp;gt;1 AND time_hour&amp;lt;7)
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 07:02:56 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-07-19T07:02:56Z</dc:date>
    <item>
      <title>How to create a 14 day search for specific time range (02:00 - 06:00) only?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606056#M210750</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How to create a 14 day search for specific time range (02:00 - 06:00) only?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 21:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606056#M210750</guid>
      <dc:creator>ashidhingra</dc:creator>
      <dc:date>2022-07-18T21:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a 14 day search for specific time range (02:00 - 06:00) only?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606057#M210751</link>
      <description>&lt;P&gt;I think you would have to carefully craft a string of earliestTime &amp;gt;= and latestTime &amp;lt;= for all the four hour time slots over the past 14 days.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 21:30:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606057#M210751</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2022-07-18T21:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a 14 day search for specific time range (02:00 - 06:00) only?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606070#M210760</link>
      <description>&lt;P&gt;You can either set up the search with multiple ranges in the search string, i.e.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=... criteria=...
 ((earliest=@d+2h latest=@d+6h) OR 
  (earliest=-d@d+2h latest=-d@d+6h) OR 
  (earliest=-2d@d+2h latest=-2d@d+6h) OR 
  (earliest=-3d@d+2h latest=-3d@d+6h) OR 
  (earliest=-4d@d+2h latest=-4d@d+6h) OR 
  (earliest=-5d@d+2h latest=-5d@d+6h) OR 
  (earliest=-6d@d+2h latest=-6d@d+6h) OR 
  (earliest=-7d@d+2h latest=-7d@d+6h) OR 
  (earliest=-8d@d+2h latest=-8d@d+6h) OR 
  (earliest=-9d@d+2h latest=-9d@d+6h) OR 
  (earliest=-10d@d+2h latest=-10d@d+6h) OR 
  (earliest=-11d@d+2h latest=-11d@d+6h) OR 
  (earliest=-12d@d+2h latest=-12d@d+6h) OR 
  (earliest=-13d@d+2h latest=-13d@d+6h) OR 
  (earliest=-14d@d+2h latest=-14d@d+6h))
...&lt;/LI-CODE&gt;&lt;P&gt;or you can search for 2 weeks of data and then filter the appropriate time ranges out you want.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 23:20:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606070#M210760</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-07-18T23:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a 14 day search for specific time range (02:00 - 06:00) only?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606101#M210777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245806"&gt;@ashidhingra&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have the time_hour field, you could use a search like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-14d@d latest=@d (time_hour&amp;gt;1 time_hour&amp;lt;7)
| ...&lt;/LI-CODE&gt;&lt;P&gt;if you haven't this field, you have to extract it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-14d@d latest=@d 
| eval time_hour=strftime(_time,"H")
| where (time_hour&amp;gt;1 AND time_hour&amp;lt;7)
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 07:02:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606101#M210777</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-19T07:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a 14 day search for specific time range (02:00 - 06:00) only?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606171#M210809</link>
      <description>&lt;P&gt;Is there a way to only show the time of the query on the timechart&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashidhingra_0-1658237241997.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20587i7FB85D209F5F0520/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashidhingra_0-1658237241997.png" alt="ashidhingra_0-1658237241997.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 13:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606171#M210809</guid>
      <dc:creator>ashidhingra</dc:creator>
      <dc:date>2022-07-19T13:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a 14 day search for specific time range (02:00 - 06:00) only?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606240#M210838</link>
      <description>&lt;P&gt;I don't believe you can remove the 6am-2am regions from the chart, but you might want to look at the timewrap command&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.6/SearchReference/Timewrap" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.6/SearchReference/Timewrap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which would allow you to plot all points one the same chart 2am-6am of the current day and to show the other days in the same time slot, but as different data series.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 21:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-14-day-search-for-specific-time-range-02-00-06/m-p/606240#M210838</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-07-19T21:58:22Z</dc:date>
    </item>
  </channel>
</rss>

