<?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 Query src + dst subnet and action in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-src-dst-subnet-and-action/m-p/702137#M238115</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I'm trying to search for denied actions in a subnet, regardless if it is the source or destination.&lt;/P&gt;
&lt;P&gt;I tried those without success, maybe you can help me out. Thank you!&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=* AND src="192.168.1.0/24" OR dst="192.168.1.0/24" AND action=deny

index=* action=deny AND src_ip=192.168.1.0/24 OR dst_ip=192.168.1.0/24&lt;/LI-CODE&gt;
&lt;P&gt;Just found it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=* dstip="192.168.1.0/24" OR srcip="192.168.1.0/24" action=deny&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 14:36:44 GMT</pubDate>
    <dc:creator>tbayer82</dc:creator>
    <dc:date>2024-10-17T14:36:44Z</dc:date>
    <item>
      <title>Query src + dst subnet and action</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-src-dst-subnet-and-action/m-p/702137#M238115</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I'm trying to search for denied actions in a subnet, regardless if it is the source or destination.&lt;/P&gt;
&lt;P&gt;I tried those without success, maybe you can help me out. Thank you!&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=* AND src="192.168.1.0/24" OR dst="192.168.1.0/24" AND action=deny

index=* action=deny AND src_ip=192.168.1.0/24 OR dst_ip=192.168.1.0/24&lt;/LI-CODE&gt;
&lt;P&gt;Just found it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=* dstip="192.168.1.0/24" OR srcip="192.168.1.0/24" action=deny&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 14:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-src-dst-subnet-and-action/m-p/702137#M238115</guid>
      <dc:creator>tbayer82</dc:creator>
      <dc:date>2024-10-17T14:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query src + dst subnet and action</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-src-dst-subnet-and-action/m-p/702150#M238117</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273268"&gt;@tbayer82&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the order of filters isn't relevant, but if you have OR operators I'd prefer to use parenthesis:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* (dstip="192.168.1.0/24" OR srcip="192.168.1.0/24") action=deny&lt;/LI-CODE&gt;&lt;P&gt;and you don't need to use the AND operator that's the default.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 08:17:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-src-dst-subnet-and-action/m-p/702150#M238117</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-17T08:17:12Z</dc:date>
    </item>
  </channel>
</rss>

