<?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: Splunk search to exclude events from field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677871#M231799</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;Thank you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;myindex&amp;gt;
|search USA="Washington" NOT date_hour IN (2,3)
is not working it's only filtering washington not excluding events between 2-3
I also want the remanining values reported all the time.  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 21:30:14 GMT</pubDate>
    <dc:creator>iamsplunker0415</dc:creator>
    <dc:date>2024-02-16T21:30:14Z</dc:date>
    <item>
      <title>Splunk search to exclude events from field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677860#M231793</link>
      <description>&lt;P&gt;Hello Splunk Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement to exclude the events from field values between&amp;nbsp; 2AM-3AM everyday.&lt;BR /&gt;For Example Field USA has 4 values&lt;BR /&gt;USA = Texas, California, Washington, New York&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I want to exclude the events from Washington between 2AM-3AM .However, I want them in remaining time 23 hours period. Is there a search to achieve this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677860#M231793</guid>
      <dc:creator>iamsplunker0415</dc:creator>
      <dc:date>2024-02-16T19:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search to exclude events from field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677861#M231794</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255966"&gt;@iamsplunker0415&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use "date_hour" field for filtering hours, please try below sample;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index USA="Washington" NOT date_hour IN (2,3)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677861#M231794</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2024-02-16T19:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search to exclude events from field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677871#M231799</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;Thank you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;myindex&amp;gt;
|search USA="Washington" NOT date_hour IN (2,3)
is not working it's only filtering washington not excluding events between 2-3
I also want the remanining values reported all the time.  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 21:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677871#M231799</guid>
      <dc:creator>iamsplunker0415</dc:creator>
      <dc:date>2024-02-16T21:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search to exclude events from field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677886#M231811</link>
      <description>&lt;P&gt;As usual, I advise &lt;EM&gt;against&lt;/EM&gt; using the default date_* fields.&lt;/P&gt;&lt;P&gt;Firstly, they don't have to be present in every event so if you get the habit of relying on them you might be unpleasantly surprised. Secondly, they correspond to the original value of the original timestamp so it might not be aligned to your timezone.&lt;/P&gt;&lt;P&gt;I'd go with&lt;/P&gt;&lt;PRE&gt;&amp;lt;base search&amp;gt;&lt;BR /&gt;| eval hour=strftime(_time,"%H")&lt;BR /&gt;| where NOT (hour&amp;gt;=2 AND hour&amp;lt;=3 AND in(USA,"Washington","New York",and so on))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 07:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-to-exclude-events-from-field-value/m-p/677886#M231811</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-17T07:41:42Z</dc:date>
    </item>
  </channel>
</rss>

