<?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 optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241661#M71874</link>
    <description>&lt;P&gt;the IP lists change often, does an inputlookup speed things up?&lt;/P&gt;</description>
    <pubDate>Sat, 20 Aug 2016 00:40:43 GMT</pubDate>
    <dc:creator>packet_hunter</dc:creator>
    <dc:date>2016-08-20T00:40:43Z</dc:date>
    <item>
      <title>How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241657#M71870</link>
      <description>&lt;P&gt;Currently I am using (OR)s &lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index = A sourcetype=a (src="192.168.3.5" OR src="192.168.3.6" OR.... etc.) | stats list(dest_ip) by src_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently I filter thru the dest_ip list, but I would like to add a &lt;CODE&gt;NOT dest_ip= 10.10.3.5  OR NOT dest_ip=10.10.3.6&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Any advice to optimize and speed up the search is greatly appreciated!&lt;/P&gt;

&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241657#M71870</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2020-09-29T10:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241658#M71871</link>
      <description>&lt;P&gt;See if this works (haven't tried it)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=a sourcetype=b NOT (dest_ip=10.10.3.5 OR dest_ip=10.10.3.6) | regex src="([0-9]{2})$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Aug 2016 22:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241658#M71871</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-19T22:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241659#M71872</link>
      <description>&lt;P&gt;Do you have any suggestions for speeding up a search  with &amp;gt;30 IPs:  e.g.  src="" OR src="" etc&lt;/P&gt;

&lt;P&gt;I have been considering the use of a lookup table (with all the IPs), but not sure if that will speed the search up.&lt;/P&gt;

&lt;P&gt;I am searching thru firewall logs and my time frame is last 30 days, but it always times out  when I use all the OR(s).&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 23:21:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241659#M71872</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2016-08-19T23:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241660#M71873</link>
      <description>&lt;P&gt;Summary Index is probably your best bet.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/Usesummaryindexing"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/Usesummaryindexing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 00:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241660#M71873</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-20T00:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241661#M71874</link>
      <description>&lt;P&gt;the IP lists change often, does an inputlookup speed things up?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 00:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241661#M71874</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2016-08-20T00:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241662#M71875</link>
      <description>&lt;P&gt;inputlookup will not only just create the same "OR" search, it will include a sub-search (extra step). Don't see that being faster.&lt;/P&gt;

&lt;P&gt;Look at "Common causes of slow searches" section&lt;/P&gt;

&lt;P&gt;&lt;A href="http://wiki.splunk.com/Community:PerformanceTroubleshooting"&gt;http://wiki.splunk.com/Community:PerformanceTroubleshooting&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 00:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241662#M71875</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-20T00:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241663#M71876</link>
      <description>&lt;P&gt;Ok, I follow what you are saying, thank you&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 00:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241663#M71876</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2016-08-20T00:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241664#M71877</link>
      <description>&lt;P&gt;I have been looking into Summary indexing.   Please make summary index your answer and I will accept.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 13:22:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241664#M71877</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2016-08-22T13:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241665#M71878</link>
      <description>&lt;P&gt;It might depend on how your data is being indexed but with my Palo Alto data I can do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pan src_ip&amp;lt;192.168.2.40 src_ip&amp;gt;192.168.2.20 | stats list(dest_ip) by src_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(obviously my source ip's are different but the syntax works). &lt;/P&gt;

&lt;P&gt;Interestingly if I switch the two src_ip searches around (greater than first) it fails to work, not sure why but I'm sure a more intelligent person than me can find out)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241665#M71878</guid>
      <dc:creator>stevejfice</dc:creator>
      <dc:date>2016-08-23T15:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize my search to find 30+ src_ips and any dest_ip that are not 2 specific IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241666#M71879</link>
      <description>&lt;P&gt;Thank you for the reply and interesting observation.&lt;BR /&gt;
My problem is that I often need to search a number of internet src IPs that are unrelated but I will try ordering them and see it that does anything.   My primary effort is too speed up the search process without summary indexing b/c the IPs of concern change frequently.   &lt;/P&gt;

&lt;P&gt;Thank you again for your reply, I will let you know the results of my testing if there is anything identifiable.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 15:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-my-search-to-find-30-src-ips-and-any-dest-ip/m-p/241666#M71879</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2016-08-24T15:05:26Z</dc:date>
    </item>
  </channel>
</rss>

