Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to calculate a value from 2 different source

$
0
0
I am pretty new to splunk. It would be great if someone can help me with a search command. I have productId as one of fields in my index data. I added lookup from products.csv which has productId, product_name & price. Now I need a bar chart with top 5 most selling products. How to get the total price from count and price? My current search is as below: index=* action="purchase" |lookup products productId as productId OUTPUT product_name price | top limit =5 product_name The above query gives me count of purchase transactions by productId. How to get the total sale amount for each product. something like: Product Name & Sale price (count by productId * price). Also how to make each bar a different color. The below is not helping: option name="charting.seriesColors">[0x12BF05,0xEAD619,0xBF2105,0xD71F93,0xC294B1] Thanks in advance.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>