Splunk Search

Use of >1 annotation using >1 epoch for earliest and latest

ramgnisiv
Path Finder

I am using the search type annotation to add annotations to my panels via simple XML.

This is an example of the simple XML i use to add a single annotation for a specific epoch period to a single panel:

Example of XML:

        <search type="annotation">
          <query>index="my_index_pr" source="my_source_pr" 

          | timechart sum(my_number)  as "my_summed_number"

| eval annotation_label = "Update: Something important"
| eval annotation_category = label</query>
          <earliest>1537142400</earliest>
          <latest>1537228800</latest>
        </search>

This works fine, until i want to add >1 annotation to a single panel.

Duplicating the XML and replacing the earliest and latest with the additional epoch timestamps, does not work.

The warning in Splunk is "Duplicate search type annotation is not allowed"

How can i add >1 annotation using multiple epoch timestamps to a single panel?

Tags (2)
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 ...