<?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 complete this query find the top 5 viewed products referred by a domain. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/559636#M158983</link>
    <description>&lt;P&gt;Sure&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236271"&gt;@EdwinOssa&lt;/a&gt; ,&amp;nbsp;no problems.. i appreciate your questions and wish you best of luck for your splunk learnings .. (sorry for the late reply)&lt;/P&gt;&lt;P&gt;1) the "&lt;SPAN&gt;chart avg(percent)" is missing a "by" field.. generally &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"chart avg(time_spent) by&amp;nbsp;referer_domain"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check the search reference document for chart command syntax and examples:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/SearchReference/Chart#Basic_examples" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/SearchReference/Chart#Basic_examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) the time_spent field is not available on the logs i think(i am not sure of the last number that appears on these logs.. that may be the time_spent, but i am not sure)&lt;/P&gt;&lt;P&gt;3) referer_domain is just 4 on these logs. so something missing on your requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know more details.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 16:12:54 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2021-07-15T16:12:54Z</dc:date>
    <item>
      <title>I need complete this query find the top 5 viewed products referred by a domain.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/558980#M158799</link>
      <description>&lt;P&gt;This is my sentence but is not completed. I can't find the solution on Doc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=main sourcetype=acc* action=view [search sourcetype=acc* status=200 action=view | top limit=5 referer_domain | table referer_domain productName] | stats count,values(productName),distinct_count(productId) by referer_domain&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 11:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/558980#M158799</guid>
      <dc:creator>EdwinOssa</dc:creator>
      <dc:date>2021-07-11T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: I need complete this query find the top 5 viewed products referred by a domain.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/558984#M158800</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236271"&gt;@EdwinOssa&lt;/a&gt;&amp;nbsp;your query is perfect one.. the field "productName" is not available. only "ProductId" is available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, you could run:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=acc* action=view [search sourcetype=acc* status=200 action=view | top limit=5 referer_domain | table referer_domain] | stats count,values(productId),distinct_count(productId) by referer_domain&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="access.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15029i4FE04B203F9C04C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="access.png" alt="access.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="access1.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15030iEC75C9F61F0638EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="access1.png" alt="access1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 12:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/558984#M158800</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2021-07-11T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: I need complete this query find the top 5 viewed products referred by a domain.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/559348#M158920</link>
      <description>&lt;P&gt;Thank you so much for your help. Appreciated your time for reply my request. I'm new learning splunk and I have some difficulties to find some results. could you help me one last time with this query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plot a trellis chart showing the average time spent on the Buttercup Games website for each user session by browser.&lt;/P&gt;&lt;P&gt;-this is my solution but I'm stuck with the average.&lt;/P&gt;&lt;P&gt;index=main sourcetype=acc* referer_domain=&lt;A href="http://www.buttercupgames.com" target="_blank"&gt;http://www.buttercupgames.com&lt;/A&gt; action=view | top limit=20 useragent | chart avg(percent)&amp;nbsp;&lt;/P&gt;&lt;P&gt;after this I only got one line&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 04:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/559348#M158920</guid>
      <dc:creator>EdwinOssa</dc:creator>
      <dc:date>2021-07-14T04:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: I need complete this query find the top 5 viewed products referred by a domain.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/559636#M158983</link>
      <description>&lt;P&gt;Sure&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236271"&gt;@EdwinOssa&lt;/a&gt; ,&amp;nbsp;no problems.. i appreciate your questions and wish you best of luck for your splunk learnings .. (sorry for the late reply)&lt;/P&gt;&lt;P&gt;1) the "&lt;SPAN&gt;chart avg(percent)" is missing a "by" field.. generally &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"chart avg(time_spent) by&amp;nbsp;referer_domain"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check the search reference document for chart command syntax and examples:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/SearchReference/Chart#Basic_examples" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/SearchReference/Chart#Basic_examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) the time_spent field is not available on the logs i think(i am not sure of the last number that appears on these logs.. that may be the time_spent, but i am not sure)&lt;/P&gt;&lt;P&gt;3) referer_domain is just 4 on these logs. so something missing on your requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know more details.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:12:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-complete-this-query-find-the-top-5-viewed-products/m-p/559636#M158983</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2021-07-15T16:12:54Z</dc:date>
    </item>
  </channel>
</rss>

