<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add static HTML panel to simple HTML dashboard and reference local static content in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Add-static-HTML-panel-to-simple-HTML-dashboard-and-reference/m-p/325582#M21038</link>
    <description>&lt;P&gt;I'm glad you asked that question @tmuth ! I bet you searched for an answer and didn't find exactly what you were looking for. Note that with splunk 6.5+ we can use global tokens to access environment information - &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Use_global_tokens_to_access_environment_information" target="_blank"&gt;link&lt;/A&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Put static content in $SPLUNK_HOME/etc/apps/your_app/appserver/static . You can also create subdirectories there. In this case I put my file in ./doc/USERGUIDE-2015.pdf , so the full path for my "abc" app is $SPLUNK_HOME/etc/apps/abc/appserver/static/doc/USERGUIDE-2015.pdf&lt;/LI&gt;
&lt;LI&gt;I can now reference this file using the following path in a Simple XML dashboard because of the global tokens: &lt;STRONG&gt;/static/app/$env:app$/doc/USERGUIDE-2015.pdf&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Below is the full code for my Simple XML dashboard:&lt;/LI&gt;
&lt;/OL&gt;

&lt;PRE&gt;

  doc
  
    &lt;PANEL&gt;
      
        &lt;H3&gt;Documentation for this project&lt;/H3&gt;
        &lt;UL&gt;
          &lt;LI&gt;2015 User Guide (local copy) - &lt;A href="https://community.splunk.com/static/app/$env:app$/doc/USERGUIDE-2015.pdf" target="_none"&gt;[here]&lt;/A&gt;&lt;/LI&gt;
        &lt;/UL&gt;
      
    &lt;/PANEL&gt;
  

&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:40:31 GMT</pubDate>
    <dc:creator>tmuth_splunk</dc:creator>
    <dc:date>2020-09-29T15:40:31Z</dc:date>
    <item>
      <title>Add static HTML panel to simple HTML dashboard and reference local static content</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Add-static-HTML-panel-to-simple-HTML-dashboard-and-reference/m-p/325581#M21037</link>
      <description>&lt;P&gt;How do I add a static HTML panel to a simple HTML dashboard and reference local static content, such as images or PDFs? I'm on splunk 6.5+ and I'd also like to use a dynamic variable for the app name in the URL references. &lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 13:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Add-static-HTML-panel-to-simple-HTML-dashboard-and-reference/m-p/325581#M21037</guid>
      <dc:creator>tmuth_splunk</dc:creator>
      <dc:date>2017-09-07T13:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add static HTML panel to simple HTML dashboard and reference local static content</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Add-static-HTML-panel-to-simple-HTML-dashboard-and-reference/m-p/325582#M21038</link>
      <description>&lt;P&gt;I'm glad you asked that question @tmuth ! I bet you searched for an answer and didn't find exactly what you were looking for. Note that with splunk 6.5+ we can use global tokens to access environment information - &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Use_global_tokens_to_access_environment_information" target="_blank"&gt;link&lt;/A&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Put static content in $SPLUNK_HOME/etc/apps/your_app/appserver/static . You can also create subdirectories there. In this case I put my file in ./doc/USERGUIDE-2015.pdf , so the full path for my "abc" app is $SPLUNK_HOME/etc/apps/abc/appserver/static/doc/USERGUIDE-2015.pdf&lt;/LI&gt;
&lt;LI&gt;I can now reference this file using the following path in a Simple XML dashboard because of the global tokens: &lt;STRONG&gt;/static/app/$env:app$/doc/USERGUIDE-2015.pdf&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Below is the full code for my Simple XML dashboard:&lt;/LI&gt;
&lt;/OL&gt;

&lt;PRE&gt;

  doc
  
    &lt;PANEL&gt;
      
        &lt;H3&gt;Documentation for this project&lt;/H3&gt;
        &lt;UL&gt;
          &lt;LI&gt;2015 User Guide (local copy) - &lt;A href="https://community.splunk.com/static/app/$env:app$/doc/USERGUIDE-2015.pdf" target="_none"&gt;[here]&lt;/A&gt;&lt;/LI&gt;
        &lt;/UL&gt;
      
    &lt;/PANEL&gt;
  

&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Add-static-HTML-panel-to-simple-HTML-dashboard-and-reference/m-p/325582#M21038</guid>
      <dc:creator>tmuth_splunk</dc:creator>
      <dc:date>2020-09-29T15:40:31Z</dc:date>
    </item>
  </channel>
</rss>

