<?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: Filtering a weekly timewrap timechart by a specific time window each day. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering-a-weekly-timewrap-timechart-by-a-specific-time-window/m-p/681468#M232872</link>
    <description>&lt;P&gt;Do you have the date_* fields in your data?&lt;/P&gt;&lt;P&gt;If so, you can do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search... earliest=-1mon (date_hour&amp;gt;=$start_hour_token$ date_minute&amp;gt;=$start_minute_token$) (date_hour&amp;lt;$end_hour_token$ OR (date_hour=$end_hour_token$ date_minute&amp;lt;$end_minute_token$)))&lt;/LI-CODE&gt;&lt;P&gt;If you don't have those fields extracted, then you will have to do an eval statement to create the date_hour and date_minute fields and then do a where clause to do the same comparison as above.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 22:53:03 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-03-20T22:53:03Z</dc:date>
    <item>
      <title>Filtering a weekly timewrap timechart by a specific time window each day.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-a-weekly-timewrap-timechart-by-a-specific-time-window/m-p/681456#M232867</link>
      <description>&lt;P&gt;I have the following query that gives me week-over-week comparisons for the past month:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="myIndex" earliest=-1mon "my query" | timechart count as Visits | timewrap w&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added dropdowns to my dashboard to filter this data by a user-selected time window for every day in the one month range.&amp;nbsp; The four dropdowns correspond to the&lt;EM&gt; start hour&lt;/EM&gt;, &lt;EM&gt;start minute&lt;/EM&gt;, &lt;EM&gt;end hour&lt;/EM&gt;, and &lt;EM&gt;end minute&lt;/EM&gt;&amp;nbsp;of the time window in military time.&amp;nbsp; For example, to filter the data by 6:30 AM - 1:21 PM each day, the tokens would have the following values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$start_hour_token$: '6'
$start_minute_token$: '30' 
$end_hour_token$: '13' 
$end_minute_token$: '21' &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I modify the original query to make ths work?&lt;/P&gt;&lt;P&gt;Thanks! Jonathan&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 21:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-a-weekly-timewrap-timechart-by-a-specific-time-window/m-p/681456#M232867</guid>
      <dc:creator>jbrenner</dc:creator>
      <dc:date>2024-03-20T21:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a weekly timewrap timechart by a specific time window each day.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-a-weekly-timewrap-timechart-by-a-specific-time-window/m-p/681468#M232872</link>
      <description>&lt;P&gt;Do you have the date_* fields in your data?&lt;/P&gt;&lt;P&gt;If so, you can do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search... earliest=-1mon (date_hour&amp;gt;=$start_hour_token$ date_minute&amp;gt;=$start_minute_token$) (date_hour&amp;lt;$end_hour_token$ OR (date_hour=$end_hour_token$ date_minute&amp;lt;$end_minute_token$)))&lt;/LI-CODE&gt;&lt;P&gt;If you don't have those fields extracted, then you will have to do an eval statement to create the date_hour and date_minute fields and then do a where clause to do the same comparison as above.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 22:53:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-a-weekly-timewrap-timechart-by-a-specific-time-window/m-p/681468#M232872</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-03-20T22:53:03Z</dc:date>
    </item>
  </channel>
</rss>

