<?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 How to get top products used by customers? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633627#M220077</link>
    <description>&lt;P&gt;I'm trying to get the top products used by customers.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 21:54:00 GMT</pubDate>
    <dc:creator>sunilkumar</dc:creator>
    <dc:date>2023-03-07T21:54:00Z</dc:date>
    <item>
      <title>How to get top products used by customers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633627#M220077</link>
      <description>&lt;P&gt;I'm trying to get the top products used by customers.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 21:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633627#M220077</guid>
      <dc:creator>sunilkumar</dc:creator>
      <dc:date>2023-03-07T21:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top products used by customers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633628#M220078</link>
      <description>&lt;P&gt;What do your events look like? What have you tried so far? With what outcome?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 19:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633628#M220078</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-07T19:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top products used by customers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633630#M220079</link>
      <description>&lt;P&gt;I tried this index=f5_access sourcetype=f5_access_lo&amp;nbsp;&lt;BR /&gt;I got events with base URI, source type, URL, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 19:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633630#M220079</guid>
      <dc:creator>sunilkumar</dc:creator>
      <dc:date>2023-03-07T19:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top products used by customers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633633#M220081</link>
      <description>&lt;P&gt;Ok. So judging from the naming this looks like logs from F5 solution. In order to answer your question you'll have to know what "products" mean in this context (and where they are included in your logs) and how do you define "top" products - used by most customers? How do you distinguish customers then? By unique IP? By some session identifier?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 20:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633633#M220081</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-07T20:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top products used by customers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633637#M220082</link>
      <description>&lt;P&gt;Hi Rick,&lt;BR /&gt;Thanks for the quick response.&lt;BR /&gt;Here the product is a table name, which is in the URL and customers have a unique name called instance it is also in the URL.&amp;nbsp; sc_catalog is the product here&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-03-07 at 12.21.33 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24233i79F554B0A699C8C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2023-03-07 at 12.21.33 PM.png" alt="Screen Shot 2023-03-07 at 12.21.33 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 20:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633637#M220082</guid>
      <dc:creator>sunilkumar</dc:creator>
      <dc:date>2023-03-07T20:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top products used by customers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633687#M220105</link>
      <description>&lt;P&gt;So, "product" is just the last segment of PATH_INFO. &amp;nbsp;Here is a general method to process URI field semantically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval uri = split(urldecode(uri), "?")
| eval PATH_INFO = mvindex(uri, 0)
| eval product = mvindex(split(PATH_INFO, "/"), -1) ``` last segment ```
| eval QUERY_STRING = mvindex(uri, 1)
| rename _raw AS temp, QUERY_STRING AS _raw
| kv kvdelim="=" pairdelim="&amp;amp;"
| rename temp AS _raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here, you not only get "product", but also parameters in QUERY_STRING.&lt;/P&gt;&lt;P&gt;To find top "product", then, is just an exercise of counting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval uri = split(urldecode(uri), "?")
| eval PATH_INFO = mvindex(uri, 0)
| eval product = replace(mvindex(split(PATH_INFO, "/"), -1), "\.do$", "")
| top 5 product ``` replace 5 with however many you want ```&lt;/LI-CODE&gt;&lt;P&gt;Here, we drop ".do" from "product" name. &amp;nbsp;This is just cosmetic.&lt;/P&gt;&lt;P&gt;Two additional points: When you ask a question, always illustrate your data (anonymize as needed), but in text. &amp;nbsp;This is a Splunk search forum, not an F5 forum. &amp;nbsp;Explain how the data should logically lead to your desired results.&lt;/P&gt;&lt;P&gt;Another pointer is about anonymization. &amp;nbsp;Public IP address can reveal a great deal about the business. (Even private IP address should be altered as a general rule.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 08:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-products-used-by-customers/m-p/633687#M220105</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-03-08T08:33:23Z</dc:date>
    </item>
  </channel>
</rss>

