Splunk Search

Sparkline column - correct but shrinked VS wrong but stretched

altink
Builder

Hello

In the search as below:

 

index=_audit action=alert_fired ss_app=app_name 
| eval alert_severity = case (severity==1,"Information",severity==2,"Low", severity==3,"Medium",severity==4,"High",severity==5,"Critical")
| fields _time ss_name severity trigger_time alert_severity 
| stats earliest(trigger_time) as min_time, latest(trigger_time) as max_time, sparkline(count) as Spark_line, count by ss_name alert_severity
| eval min_time = strftime(min_time, "%Y-%m-%d %H:%M:%S")
| eval max_time = strftime(max_time, "%Y-%m-%d %H:%M:%S")
| table ss_name, min_time, max_time count alert_severity
| rename ss_name as "Alert Name" min_time as "Start Time" max_time as "End Time" count as "Number of Alerts" alert_severity as "Criticality"

 

The Sparkline produced is correct in count (image001.png) and presentation. But it is shkrinked to a very small size and does not look good.


So I try to change from:
sparkline(count,30m) as Spark_line  ->  sparkline(count,30m) as Spark_line

This time the layout is much better, the result is OK (image002.png), but the Graphic Presantation (points) are wrong.

How can I have the right graphical presentation  by keeping sparkline wide enough?

image 001

image001.png

image 002

image002.png

best regard

Altin

Labels (1)
0 Karma

altink
Builder

Hi

Is there anyone that can advise?

regards

Altin

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 ...