<?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: I need to find an IP Address or user agent for a client that visits 5 uri stems, how can I incorporate this into a query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207253#M187743</link>
    <description>&lt;P&gt;OP: Here is the issue, I know the 5 uri stems that the group is always hitting and they only hit those uri stems. I am looking for a solution that will search for any user who has hit all five of the specific uri stems and nothing else. This is a way of tracking their activity, but I don't know if such a query is possible&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2015 22:37:41 GMT</pubDate>
    <dc:creator>matt_cunningham</dc:creator>
    <dc:date>2015-09-08T22:37:41Z</dc:date>
    <item>
      <title>I need to find an IP Address or user agent for a client that visits 5 uri stems, how can I incorporate this into a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207251#M187741</link>
      <description>&lt;P&gt;An group of IP Addresses, continue to hit a set of 5 uri stems. If they change their IP Address, I would still like to be able to track them as they only hit the same 5 uri stems. Is there any way to format this into a query? Does  a query such as  uri_stem="uri1", "uri3", "uri3"  exist?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 22:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207251#M187741</guid>
      <dc:creator>matt_cunningham</dc:creator>
      <dc:date>2015-09-08T22:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: I need to find an IP Address or user agent for a client that visits 5 uri stems, how can I incorporate this into a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207252#M187742</link>
      <description>&lt;P&gt;Without seeing an example of your data set, there are a few ways to approach this. One way would be to do a stats against the uri_stem by src_ip, where uri_stem is &amp;gt; 5. &lt;/P&gt;

&lt;P&gt;.. | stats count(uri_stem) AS uri_count by src_ip | where uri_count &amp;gt; 5 | table src_ip uri_count&lt;/P&gt;

&lt;P&gt;This does depend on uri_stem being normalized to a usable value, perhaps base url or similar...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207252#M187742</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2020-09-29T07:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: I need to find an IP Address or user agent for a client that visits 5 uri stems, how can I incorporate this into a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207253#M187743</link>
      <description>&lt;P&gt;OP: Here is the issue, I know the 5 uri stems that the group is always hitting and they only hit those uri stems. I am looking for a solution that will search for any user who has hit all five of the specific uri stems and nothing else. This is a way of tracking their activity, but I don't know if such a query is possible&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 22:37:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207253#M187743</guid>
      <dc:creator>matt_cunningham</dc:creator>
      <dc:date>2015-09-08T22:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: I need to find an IP Address or user agent for a client that visits 5 uri stems, how can I incorporate this into a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207254#M187744</link>
      <description>&lt;P&gt;If you know the URIs, you can futher filter on this..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.. | stats count(uri_stem) AS uri_count by src_ip uri_stem | where uri_count &amp;gt; 5 | search uri_stem="uri1" OR uri_stem="uri2" OR uri_stem="uriN" | table uri_stem src_ip uri_count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have a large number of URIs, you can do a lookup in there to match against them also...&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 22:46:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207254#M187744</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-09-08T22:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: I need to find an IP Address or user agent for a client that visits 5 uri stems, how can I incorporate this into a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207255#M187745</link>
      <description>&lt;P&gt;Try something like this ( assuming you've hard-coded list of uri_stem and after sorting alphabatically, they are in order or uri1, uri2, uri3, uri4 uri5)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | stats values(uri_stem) as uri_stem by src_ip | where mvcount uri_stem=5 AND mvindex(uri_stem,0)="uri1" AND mvindex(uri_stem,1)="uri2" AND mvindex(uri_stem,2)="uri3" AND mvindex(uri_stem,3)="uri4" AND mvindex(uri_stem,4)="uri5"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Description: get list of distinct uri_stem hit by src_ip, filter where count is 5 and only hard-coded list of 5 uri_stem are hit.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-find-an-IP-Address-or-user-agent-for-a-client-that/m-p/207255#M187745</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T07:11:11Z</dc:date>
    </item>
  </channel>
</rss>

