Dashboards & Visualizations

Trying to get Trellis and Single Value to play ball.

uthornander_spl
Splunk Employee
Splunk Employee

Hi
Trying to display some data with single value (and sparkline) with the single value viz.
I want to break the result up over "countries", but nothing comes out.
I get a sparkline, but the rest are all zero's

| gentimes start=01/01/2024 end=01/31/2024 increment=1d
| eval _time=starttime
| eval countries="Sweden,Finland,Estonia,Lithuania,Norway,Latvia"
| makemv delim="," countries
| mvexpand countries
| eval value=round(random() % 100, 0)
| streamstats count
| sort countries
| timechart span=1d avg(value) by countries

Dashboard  

UT
Labels (3)
0 Karma
1 Solution

uthornander_spl
Splunk Employee
Splunk Employee

Cracked it 😊

| gentimes start=12/01/2024 end=-1 increment=1d
| eval _time=starttime
| eval countries="Sweden,Finland,Estonia,Lithuania,Norway,Latvia"
| makemv delim="," countries
| mvexpand countries
| eval value=round(random() % 100, 0)
| timechart max(value) by countries
UT

View solution in original post

0 Karma

uthornander_spl
Splunk Employee
Splunk Employee

Cracked it 😊

| gentimes start=12/01/2024 end=-1 increment=1d
| eval _time=starttime
| eval countries="Sweden,Finland,Estonia,Lithuania,Norway,Latvia"
| makemv delim="," countries
| mvexpand countries
| eval value=round(random() % 100, 0)
| timechart max(value) by countries
UT
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@uthornander_spl- Kindly please accept your own answer, so future Splunk Community users gets benefited from it.

0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...