Splunk is a tool that works really well with data. Please can you provide some real sample data and perhaps the queries you have so far?
Hello! thank you so much for trying to help me out I am truly greateful for that.. this is the data I'm working with
| multisearch
[|search index="products_sold" AND productId=A AND ID_INFO=* | IDA=ID_INFO]
[|search index="products_sold" AND productId=B AND ID_INFO=* | IDB=ID_INFO]
[|search index="products_sold" AND productId=C AND ID_INFO=* | IDC=ID_INFO]
| fields IDA IDB IDC
# IDA are the people who bought product A, IDB bought product B , IDC bought product C
let's say that for yesterday I have the following
IDA= 11, 10,12, 78, 89,13
IDB= 11, 10, 45,13
IDC= 11, 10, 25
I want to be able to get this table :
Category | Total IDS |
Only A | 3 |
Only B | 1 |
only C | 1 |
A & B | 3 |
B & C | 2 |
C & A | 2 |
A, B, C | 2 |
Only A = 3 because the IDS (12, 78, 89) only bought during that time product A
A,B,C = 2 because the IDS (10,11) boought produts A B and C during this time
I hope this can ilustrate what I am trying to achive and I can not stress enough how much you guy's help means to me THANK YOU SO SO MUCH to anyone that can help me
| multisearch
[|search index="products_sold" AND productId=A AND ID_INFO=*]
[|search index="products_sold" AND productId=B AND ID_INFO=*]
[|search index="products_sold" AND productId=C AND ID_INFO=*]
| stats values(productId) as Category by ID_INFO
| eval Category=mvjoin(Category,",")
| stats count as "Total IDS" by Category