Splunk Search

cartToPurchase(%) by productID : purchases/addtocart

kuramesh
Loves-to-Learn Lots

Can you pls share the cartToPurchase(%) by productID : purchases/addtocart query 

Labels (1)
0 Karma

kuramesh
Loves-to-Learn Lots

Might be you are not able to understand.

I have tutorial data in splunk

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Yes, I do not have the tutorial data you mentioned

Instead of doing stats by productName, can you do them by productId?

0 Karma

kuramesh
Loves-to-Learn Lots

Hi i have  tutorial data, already uploaded in Splunk, but i need quires to fetches the data. can you share the quires for below requested data.

Client purchase details:
         Provide details about client purchase details 

         1. Total Purchase split by product ID

         2. Product Names split by product ID

Purchase Statistics:
          Provide :

         1. cartToPurchase(%) by productID : purchases/addtocart

         2. viewsToPurchase(%) by productID : purchases/views (total event count AS view)

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

What queries have you tried so far?

0 Karma

kuramesh
Loves-to-Learn Lots
sourcetype=access_* status=200 | chart count(eval(action="addtocart")) AS addtocart count(eval(action="purchase")) AS purchases by productName | eval percent=(purchases/addtocart )*100 
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Is there a productId field in the data?

0 Karma

kuramesh
Loves-to-Learn Lots

Its very urgent and critical if possible pls share your contact details so that i can contact you.

0 Karma

kuramesh
Loves-to-Learn Lots

Yes,

Pls share the quires so that i can fetch report.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try changing productName to productId in your search

sourcetype=access_* status=200 | chart count(eval(action="addtocart")) AS addtocart count(eval(action="purchase")) AS purchases by productId | eval percent=(purchases/addtocart )*100 

 and see what id does. This is a tutorial right? Presumably, you are trying to learn how to use splunk? One of the best ways to learn is by trying things and see what happens. 

0 Karma

kuramesh
Loves-to-Learn Lots

Hi You has been failed to resolve my concern.

0 Karma

kuramesh
Loves-to-Learn Lots

Hi have all the required data in splunk but i need separate query for below report.

Client purchase details:
         Provide details about client purchase details 

         1. Total Purchase split by product ID

         2. Product Names split by product ID

Purchase Statistics:
          Provide :

         1. cartToPurchase(%) by productID : purchases/addtocart

         2. viewsToPurchase(%) by productID : purchases/views (total event count AS view)

0 Karma

kuramesh
Loves-to-Learn Lots

sourcetype=access_* status=200 | stats count AS views count(eval(action="addtocart")) AS addtocart
count(eval(action="purchase")) AS purchases by productName | eval
viewsToPurchases=(purchases/views)*100 | eval cartToPurchases=(purchases/addtocart)*100 | table
productName views addtocart purchases viewsToPurchases cartToPurchases | rename productName AS
"Product Name", views AS "Views", addtocart as "Adds To Cart", purchases AS "Purchases"

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please provide more detail as to what this question is about

0 Karma

kuramesh
Loves-to-Learn Lots

I need to fetch below data from splunk, pls suggest.

Access Dashboard:
         1. Number of hits
         2. Top 20 category and top 20 domain
         3. Status code count

Client purchase details:
         Provide details about client purchase details 

         1. Total Purchase split by product ID

         2. Product Names split by product ID

Purchase Statistics:
          Provide :

         1. cartToPurchase(%) by productID : purchases/addtocart

         2. viewsToPurchase(%) by productID : purchases/views (total event count AS view)

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you provide some sample events that you have in your splunk, preferably in code blocks </>

0 Karma
Get Updates on the Splunk Community!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...