<?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: Search users who access url1, url2 but not url3 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-users-who-access-url1-url2-but-not-url3/m-p/198424#M57377</link>
    <description>&lt;P&gt;For your first part you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=your_access_logs (url=url1 OR url=url2 OR url=url3) | chart count over url by clientip | where url1&amp;gt;0 AND url2&amp;gt;0 AND url3=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second bit works similarly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=your_access_logs (url=url1 OR url=url2 OR url=url3 OR url=url4) | chart count over url by clientip | where url1&amp;gt;0 AND url2&amp;gt;0 AND url3&amp;gt;0 AND url4&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Jun 2014 18:28:16 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-06-16T18:28:16Z</dc:date>
    <item>
      <title>Search users who access url1, url2 but not url3</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-users-who-access-url1-url2-but-not-url3/m-p/198422#M57375</link>
      <description>&lt;P&gt;I am analyzing Apache web access log and want to search all clientip who accessed url1, url2 but not url3. Meanwhile, I also want the list who accessed url1, url2, url3, url4. How to implement it?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 03:38:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-users-who-access-url1-url2-but-not-url3/m-p/198422#M57375</guid>
      <dc:creator>xuguang</dc:creator>
      <dc:date>2014-06-16T03:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search users who access url1, url2 but not url3</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-users-who-access-url1-url2-but-not-url3/m-p/198423#M57376</link>
      <description>&lt;P&gt;Hi xuguang,&lt;/P&gt;

&lt;P&gt;try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;clientip (url1 OR url2) NOT url3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or if your second request is like who accessed either of the url's&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;clinetip url1 OR url2 OR url3 OR url4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 07:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-users-who-access-url1-url2-but-not-url3/m-p/198423#M57376</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-16T07:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search users who access url1, url2 but not url3</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-users-who-access-url1-url2-but-not-url3/m-p/198424#M57377</link>
      <description>&lt;P&gt;For your first part you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=your_access_logs (url=url1 OR url=url2 OR url=url3) | chart count over url by clientip | where url1&amp;gt;0 AND url2&amp;gt;0 AND url3=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second bit works similarly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=your_access_logs (url=url1 OR url=url2 OR url=url3 OR url=url4) | chart count over url by clientip | where url1&amp;gt;0 AND url2&amp;gt;0 AND url3&amp;gt;0 AND url4&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jun 2014 18:28:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-users-who-access-url1-url2-but-not-url3/m-p/198424#M57377</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-06-16T18:28:16Z</dc:date>
    </item>
  </channel>
</rss>

