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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...