Splunk Search

How to reorganize a table

mah
Builder

Hello,

I have a table like that :

customerprod_1prod_2prod_3
customer_1 green 
customer_2red orange

 

and I would like to count customer by product to get a table like this : 

productcountcustumer
prod_11customer_2
prod_21customer_1
prod_31customer_2

 

Is it possible ?

Labels (1)
Tags (1)
0 Karma

gcusello
Legend

Hi @mah,

please try something like this:

your_search
| stats count BY product customer
| table product count customer

Ciao.

Giuseppe

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What search produced the first table?

---
If this reply helps you, an upvote would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...