Using eval command, how would I calculate the cartToPurchase percentage by product?
sourcetype=access* status=200 action= purchase OR view | stats count(eval(match("purchase cart"))) AS carttopurchase |stats count AS total | eval percent=(carttopurchase/total)*100
Please help me to execute the search and please don't close this question as i am in serious need for the answer.
Try like this
sourcetype=access_* status=200 | chart count(eval(action="addtocart")) AS addtocart count(eval(action="purchase")) AS purchases by productName | eval percent=(purchases/addtocart )*100
Try like this
sourcetype=access_* status=200 | chart count(eval(action="addtocart")) AS addtocart count(eval(action="purchase")) AS purchases by productName | eval percent=(purchases/addtocart )*100
Can you close out the other question you asked (Accept an answer) which is very similar to this one?
bro please help in this question i need to calculate the percentage and also for % i need to calculate the arguments for it.
help
please answer here brother please i need it