Splunk Search

1. Total purchase split by product ID

dilip7504
New Member

please provide me solution on tutorial data

Client purchase details:
Provide details about client purchase details
1. Total purchase split by product ID
2. Total Products split by product ID

Tags (1)
0 Karma

renjith_nair
Legend

Hi @dilip7504,

In general, you could get it by ,

your search terms | stats coun(purchase) as Total_Purchase,count(Products) as Total_Products by product_id    

If this doesn't work , please provide some sample events

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

dilip7504
New Member

doesn't work

sourcetype=access_* | stats count(purchase) as Total_Purchase,count(Products) as Total_Products by product_id

this is work

sourcetype=access_* action="purchase"| stats count as product by productId

0 Karma

renjith_nair
Legend

OK . Do you have any pending issues?

If you are experimenting with the tutorial data , then this might help https://www.splunk.com/en_us/resources/video.gzdGVpbzqfsrZ6zSHd2qbGhuXBhMrEME.html

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...