<?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: narrow down data with time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629799#M218796</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253621"&gt;@Chris231289&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's useful for these types of queries to understand where the events to be filtered come from and how they look.&amp;nbsp; It also may depend on where you need to filter the data, has it been transformed into a summary already.&amp;nbsp; These things can make a difference to how you would filter out events.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If this is standard search query then by default Splunk creates a data_hour field (from the _time field) so something like this would work...&lt;/P&gt;&lt;PRE&gt;...your base query search query...&lt;BR /&gt;| where ((date_hour &amp;lt; 8 OR (date_hour &amp;gt;= 17))&lt;/PRE&gt;&lt;P&gt;Maybe provide a sample of you data or your current search query if this does not work for you.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 22:03:28 GMT</pubDate>
    <dc:creator>yeahnah</dc:creator>
    <dc:date>2023-02-06T22:03:28Z</dc:date>
    <item>
      <title>How to narrow down data with time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629793#M218793</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am looking to narrow down my search field, i only want to search for events that happen outside of&amp;nbsp; a specific time range. I want to search for events that happen outside of 0800 to 1700&lt;/P&gt;
&lt;P&gt;Any help would be appriceated&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 02:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629793#M218793</guid>
      <dc:creator>Chris231289</dc:creator>
      <dc:date>2023-02-07T02:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: narrow down data with time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629799#M218796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253621"&gt;@Chris231289&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's useful for these types of queries to understand where the events to be filtered come from and how they look.&amp;nbsp; It also may depend on where you need to filter the data, has it been transformed into a summary already.&amp;nbsp; These things can make a difference to how you would filter out events.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If this is standard search query then by default Splunk creates a data_hour field (from the _time field) so something like this would work...&lt;/P&gt;&lt;PRE&gt;...your base query search query...&lt;BR /&gt;| where ((date_hour &amp;lt; 8 OR (date_hour &amp;gt;= 17))&lt;/PRE&gt;&lt;P&gt;Maybe provide a sample of you data or your current search query if this does not work for you.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 22:03:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629799#M218796</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-02-06T22:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: narrow down data with time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629800#M218797</link>
      <description>&lt;P&gt;thank you but when i put in&amp;nbsp;| where((date_hour &amp;lt; 8 OR (date_hour &amp;gt;= 17))&amp;nbsp; i get the error&amp;nbsp;&lt;SPAN&gt;Error in 'where' command: The expression is malformed. Expected ).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 22:19:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629800#M218797</guid>
      <dc:creator>Chris231289</dc:creator>
      <dc:date>2023-02-06T22:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: narrow down data with time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629805#M218798</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Looks like i missed the closing parenthesis after the 8.&amp;nbsp; Try...&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;| where&amp;nbsp; ((date_hour &amp;lt; 8 ) OR (date_hour &amp;gt;= 17))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 22:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-narrow-down-data-with-time/m-p/629805#M218798</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-02-06T22:45:28Z</dc:date>
    </item>
  </channel>
</rss>

