Dashboards & Visualizations

Why is animate tag removed from SVG in XML dashboard?

accpnt
Loves-to-Learn

I have an error while trying to animate an embedded SVG in one of my XML dashboard. I noticed that the animate tag included in a <line> or <rect> root tags is systematically removed from my XML when rendered in the dashboard's HTML (the output). That problem gives me error while trying to parse the <animate> tag with a custom JavaScript, as they are missing from the DOM. 

 

 

<line id="id_1" stroke="rgb(0,220,228)" stroke-width="3" visibility="visible" x1="404.0" x2="833.0" y1="1255.0" y2="1255.0">
    <title>id_1</title>
    <desc>description of id_1</desc>
    <metadata>
        <route/>
    </metadata>
    <animate attributeName="stroke" attributeType="CSS" dur="1s" from="rgb(0,220,228)" id="id_1" repeatCount="indefinite" to="white"/>
</line>

 

 

I enclosed with this post a sample of the SVG embedded in my dashboard. While rendered as HTML, it looks like this:

 

 

<line id="id_1" stroke="rgb(0,220,228)" stroke-width="3" visibility="visible" x1="404.0" x2="833.0" y1="1255.0" y2="1255.0">
    <title>id_1</title>
    <desc>description of id_1</desc>
    <metadata>

    </metadata>

</line>

 

 

It used to work on a Splunk 7, but somehow it doesn't work on Splunk 8 and 9. I wanted to know what might cause this error ? And also, can someone provide me docs on how the Splunk XML dashboard are exported as HTML in order to understand which component might explain this problem ?

Are there SVG/XML standards that evolved from Splunk 7 to Splunk 8/9 ?

Labels (2)
0 Karma
Get Updates on the Splunk Community!

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...