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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...