Splunk Search

How is it possible to assign the result of the | append [ subsearch ] in a constant?

skender27
Contributor

Hi,

I have a search and an | append [subsearch] which adds at the bottom of the results (see image) a new row with the sum of the values per every column.
Is there a way to assign those results (see 1317 in the image provided) in a constant or a field (through an eval maybe)?

alt text

Thanks,
Skender

0 Karma

woodcock
Esteemed Legend

If you are saying to give the last row a name for the leading field without knowing the name of the field/column, you can do this will fillnull like this:

... | fillnull value="Total"
0 Karma

somesoni2
Revered Legend

Are you looking to add a new field (in your main search result) which will have sum of values of a column (which you're adding through an append subsearch? If yes then try this

your main search  | eventstats sum(field1) as TotalField1
0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...