Dashboards & Visualizations

Is it possible to have the annotation for only one chart when view by Trellis?

Julia1231
Communicator

Hi,

Is it possible to have the annotation for only one chart when view by Trellis, for example in the image below, I only want to have notation for the first chart.

Julia1231_0-1673442990138.png

Knowing that:

- I'm using the visualization by Trellis.

- The annotation is now established by adding this part in the XML source.

 

 

        <search type="annotation">
          <query>| makeresults 
| eval _time="2022-09-20 00:00:00", message="Change equipement", type="type1"
 | eval annotation_label = message </query>
          <earliest>0</earliest>
          <latest></latest>
        </search>
<option name="charting.annotation.categoryColors">{"type1":"0xffcc00"}</option>

 

 

- The list of id with the date of changement is stored in a lookup csv

I did this but it show annotation for every chart

 

<search type="annotation">
          <query>|inputlookup list_id.csv
|search NoEq=$id$
| eval _time=_time, message="Change", type="type1"
 | eval annotation_label = message </query>
          <earliest>0</earliest>
          <latest></latest>
        </search>

 

Labels (5)
Tags (1)

woodcock
Esteemed Legend

Splunk has the mechanism in place to make it work: $trellis.name$ and $trellis.value$, but instead of these being available for ALL searches, they are only available for the trellis search/chart.  I have tried many things but all have failed.  If annotations are supported in Studio, you could try there.  That is my next step, but I don't know Studio so don't know if I will try or how long it would take.  The next best thing to do is make the "annotation_category" set to the value of the split-by field for the Trellis so that a hover makes it clear which ones are for which trellis panel.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...