Listing the top viewed products
Our web access logs capture the product IDs (the item field in the logs) that users are viewing and adding to their shopping carts. Understanding the top products that people view can help influence our sales and marketing strategy and even product direction. Additionally, products viewed on an e-commerce website might not always necessarily translate into sales of that product.
In this next recipe, we will write a Splunk search to chart the top 10 products that users successfully view and compare against the number of successful shopping cart additions for each product. For example, if a product has a high number of views, but the product is not being added to carts, this could indicate that something is not right—perhaps, the pricing of the product is too high.
Getting ready
To step through this recipe, you will need a running Splunk Enterprise server, with the sample data loaded from Chapter 1, Play Time – Getting Data In. You should be familiar with the Splunk...