<?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 to find events with more than 2 values for a specific field compared to another field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-to-find-events-with-more-than-2-values-for-a-specific/m-p/538173#M152117</link>
    <description>&lt;P&gt;I'm trying to create a query to show me all users who have purchased more than 1 type of product.&lt;/P&gt;&lt;P&gt;Each event has a "user" field and a "product" field.&amp;nbsp; I only want to see the users that have purchased more than 1 type of product.&lt;/P&gt;&lt;P&gt;"| stats count by user product"&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shows me all user and product combinations, but don't know how to filter all events where a user only purchased one type of product.&lt;/P&gt;&lt;P&gt;I feel that it should be a very simple query, but can't seem to figure it out.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 21:18:46 GMT</pubDate>
    <dc:creator>john_byun</dc:creator>
    <dc:date>2021-02-01T21:18:46Z</dc:date>
    <item>
      <title>Query to find events with more than 2 values for a specific field compared to another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-find-events-with-more-than-2-values-for-a-specific/m-p/538173#M152117</link>
      <description>&lt;P&gt;I'm trying to create a query to show me all users who have purchased more than 1 type of product.&lt;/P&gt;&lt;P&gt;Each event has a "user" field and a "product" field.&amp;nbsp; I only want to see the users that have purchased more than 1 type of product.&lt;/P&gt;&lt;P&gt;"| stats count by user product"&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shows me all user and product combinations, but don't know how to filter all events where a user only purchased one type of product.&lt;/P&gt;&lt;P&gt;I feel that it should be a very simple query, but can't seem to figure it out.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 21:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-find-events-with-more-than-2-values-for-a-specific/m-p/538173#M152117</guid>
      <dc:creator>john_byun</dc:creator>
      <dc:date>2021-02-01T21:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query to find events with more than 2 values for a specific field compared to another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-find-events-with-more-than-2-values-for-a-specific/m-p/538175#M152118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204250"&gt;@john_byun&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats dc(product) as count by user
| where count&amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 21:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-find-events-with-more-than-2-values-for-a-specific/m-p/538175#M152118</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-01T21:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query to find events with more than 2 values for a specific field compared to another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-find-events-with-more-than-2-values-for-a-specific/m-p/538177#M152119</link>
      <description>&lt;P&gt;Perfect!&amp;nbsp; Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 21:36:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-find-events-with-more-than-2-values-for-a-specific/m-p/538177#M152119</guid>
      <dc:creator>john_byun</dc:creator>
      <dc:date>2021-02-01T21:36:19Z</dc:date>
    </item>
  </channel>
</rss>

