<?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 do you list source IPs that hit only two URLs in WEB source types? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445665#M177044</link>
    <description>&lt;P&gt;Thanks but I need to get the list of IPs that hit two URLs &lt;BR /&gt;
account/XYz and account/ABC&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 15:06:48 GMT</pubDate>
    <dc:creator>aamer86</dc:creator>
    <dc:date>2019-02-05T15:06:48Z</dc:date>
    <item>
      <title>How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445663#M177042</link>
      <description>&lt;P&gt;We have WEB logs, and we need to isolate the source IPs that only (only) hit two URLs. &lt;/P&gt;

&lt;P&gt;The fields are:&lt;/P&gt;

&lt;P&gt;src for source IP &lt;BR /&gt;
uri_path for hit URL &lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445663#M177042</guid>
      <dc:creator>aamer86</dc:creator>
      <dc:date>2019-02-05T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445664#M177043</link>
      <description>&lt;P&gt;So, something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search here&amp;gt;
| stats distinct_count(uri_path) as distinct_uri_count by src
| where distinct_uri_count = 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445664#M177043</guid>
      <dc:creator>ccl0utier</dc:creator>
      <dc:date>2019-02-05T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445665#M177044</link>
      <description>&lt;P&gt;Thanks but I need to get the list of IPs that hit two URLs &lt;BR /&gt;
account/XYz and account/ABC&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:06:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445665#M177044</guid>
      <dc:creator>aamer86</dc:creator>
      <dc:date>2019-02-05T15:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445666#M177045</link>
      <description>&lt;P&gt;You can add &lt;CODE&gt;values(src)&lt;/CODE&gt; to the stats command then?&lt;/P&gt;

&lt;P&gt;Or am I misunderstanding completely?  Do you mean these URIs only?  Specific ones?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445666#M177045</guid>
      <dc:creator>ccl0utier</dc:creator>
      <dc:date>2019-02-05T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445667#M177046</link>
      <description>&lt;P&gt;sorry I think I should have explained it better &lt;/P&gt;

&lt;P&gt;so we  need to get all the IPs that ONLY hit two urls &lt;/P&gt;

&lt;P&gt;account/logon &lt;BR /&gt;
member/savedcard &lt;/P&gt;

&lt;P&gt;As this has been detected as an attack pattern &lt;/P&gt;

&lt;P&gt;So i need the IPs that hit only these two URLs &lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445667#M177046</guid>
      <dc:creator>aamer86</dc:creator>
      <dc:date>2019-02-05T15:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445668#M177047</link>
      <description>&lt;P&gt;Then this should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt;
| stats values(uri_path) as uri_path by src
| where mvcount(uri_path) = 2 AND isnotnull(mvfind(uri_path, "^account\/logon$")) AND isnotnull(mvfind(uri_path, "^member\/savedcard"))
| stats count by src
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can substitute stats with tstats if uri_path is an indexed field.  YMMV.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445668#M177047</guid>
      <dc:creator>ccl0utier</dc:creator>
      <dc:date>2019-02-05T16:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445669#M177048</link>
      <description>&lt;P&gt;Thanks but this is really slow search using transaction &lt;/P&gt;

&lt;P&gt;can we have something to be used with tstats and Data Model &lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445669#M177048</guid>
      <dc:creator>aamer86</dc:creator>
      <dc:date>2019-02-05T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445670#M177049</link>
      <description>&lt;P&gt;I've updated my answer to reflect that.  Should be faster/more flexible.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 18:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445670#M177049</guid>
      <dc:creator>ccl0utier</dc:creator>
      <dc:date>2019-02-05T18:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you list source IPs that hit only two URLs in WEB source types?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445671#M177050</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count FROM datamodel=Web WHERE index=* AND (Web.url="first/url" OR Web.url="second/url") BY Web.src
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Feb 2019 20:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-list-source-IPs-that-hit-only-two-URLs-in-WEB-source/m-p/445671#M177050</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-05T20:58:28Z</dc:date>
    </item>
  </channel>
</rss>

