Splunk Enterprise

|table with eventstats?

TCK101
New Member

So this is example data

TYPE, COUNTRY , TOTAL_SHIPPED
Orange, US, 25
Apple, US , 100
Apple , UK , 25

Orange, SPAIN , 10

Pears , GERMANY , 10

I want to bring back a table that counts the number of Orange Types of there and bring back the SUM of "total_shipped"

So that I get

TYPE, Count( TYPE), SUM()TOTAL_SHIPPED
Orange, 2 , 30
Apple , 2 , 125
Pears , 1 , 10

Tags (1)
0 Karma

FrankVl
Ultra Champion

This should work:

| stats count sum(TOTAL_SHIPPED) by TYPE

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...