All Apps and Add-ons

how to pass a series from a search to an html module in sideview?

RiccardoV
Communicator

Hi all!
I have a search like this:

search * | timechart span=1d count as foo

I need to pass all the values of that timechart to an HTML child module, in order to print something like this:

[37, 56, 29, 8, 33, 74, 61, 19, 23, 48, 17, 30, 87, 30, 6, 19, 23, 31, 55, 55, 41, 65, 87]

how can I get this result?

I can pass a single value to the child module using $results[0].foo$, but I want all the values of the series!

0 Karma
1 Solution

RiccardoV
Communicator

So far I do this:

search * | timechart span=1d count as foo | stats list(foo) as seriesfinale

so I can retrieve all the series' values with

$results[0].seriesfinale$

View solution in original post

0 Karma

RiccardoV
Communicator

So far I do this:

search * | timechart span=1d count as foo | stats list(foo) as seriesfinale

so I can retrieve all the series' values with

$results[0].seriesfinale$

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...