Splunk Search

Is it possible to display a name or number on top of a chart overlay?

nilotpaldutta
Explorer

Hi Everyone,

Is it possible to display a name or number on top of a chart overlay?

I have a search that displays the data in a bar chart.
My sample search:

index ="my_index_1" sourcetype="type_1" | rename Col_1 as Ticket_Number | rename Col_2 as ticket_created_date | table Ticket_Number, ticket_created_date | join Ticket_Number [search index ="my_index_2" sourcetype ="type_2" | rename Col_1 as Ticket_Number | rename Col_2 as Classification | table Ticket_Number, Classification | eval Classification=lower(Classification) | eval Classification=upper(substr(Classification,1,1)).lower(substr(Classification,2)) | replace "Sev-4" with "(4) Sev-4", "Sev-3" with "(3) Sev-3", "Sev-2" with "(2) Sev-2", "Sev-1" with "(1) Sev-1"] | table Ticket_Number, ticket_created_date, Classification | eval Month=strftime(strptime(ticket_created_date,"%d/%m/%Y %H:%M"),"%Y/%m") | chart count over Month by Classification | eval Threshold_2014=round(10880) | eval Threshold_2015=round(5440)

My output currently looks like that in Fig-1.png
alt text

Is there a way to put a number right on top of the two different thresholds at the end? So that the final output looks something like Fig-2.png?
alt text

Thanks in advance.

0 Karma

masonmorales
Influencer

Not without doing a bunch of custom web development. Have you considered just changing the names that will appear in the legend? I know it's not ideal, but it might be a quick workaround.

 eval 10880_Threshold_2014=round(10880) | eval 5440_Threshold_2015=round(5440)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...