Splunk Search

How do I insert several aggregated values (say sum of a field/column) in several places in a table listing?

ahuseid
New Member

I have simple search that lists selected fields. however, I need to insert aggregates (like sum, count) of one filed/column at different places in the listing. How could I do that?

thanks

Tags (3)
0 Karma

acharlieh
Influencer

It would help if you added more details to your question so there is more context around what you have, and what exactly you're trying to accomplish. I highly recommend quality time with the Search Reference Manual as there are tons of things that could apply.

For example you may be looking for stats, eventstats, or streamstats. These commands and a few others are able to calculate statistical functions. If you're wanting to add these statistics as new records combining with appendpipe is very powerful. If you're looking for strictly sums of rows or columns, addtotals and addcoltotals may be what you're looking for instead. As you can see, there's lots of ways to accomplish similar tasks depending on your goals 🙂

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...