<?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: How to embed an image in a simple XML dashboard with HTML? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111819#M6390</link>
    <description>&lt;P&gt;It works, thanks a lot!!!&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 16:55:00 GMT</pubDate>
    <dc:creator>Lindaiyu</dc:creator>
    <dc:date>2016-03-03T16:55:00Z</dc:date>
    <item>
      <title>How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111813#M6384</link>
      <description>&lt;P&gt;I'm trying to embed a jpeg into a simple XML dashboard with HTML. It looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
  &amp;lt;description/&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;html&amp;gt;      
        &amp;lt;img src="picture.jpg"/&amp;gt;
&amp;lt;/html&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've obviously excised the page content just to show how I'm trying to include the picture.&lt;/P&gt;

&lt;P&gt;The file "picture.jpg" is living in &lt;CODE&gt;/opt/splunk/etc/apps/myapp/appserver/static&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;All I'm seeing is a big old broken image link. Any thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 15:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111813#M6384</guid>
      <dc:creator>willial</dc:creator>
      <dc:date>2015-01-26T15:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111814#M6385</link>
      <description>&lt;P&gt;Change the path to the asset like so:&lt;/P&gt;

&lt;P&gt;/static/app/myapp/picture.jpg&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111814#M6385</guid>
      <dc:creator>joshd</dc:creator>
      <dc:date>2015-01-26T16:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111815#M6386</link>
      <description>&lt;P&gt;Wow. None of the info I could find in the documentation suggested that was needed. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111815#M6386</guid>
      <dc:creator>willial</dc:creator>
      <dc:date>2015-01-26T16:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111816#M6387</link>
      <description>&lt;P&gt;Hi, this is driving me crazy. I tried the same as above, but with no success.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;First I did a upload of a (.jpg and a .png) picture ("Manage Apps_Edit Properties_Upload")&lt;/LI&gt;
&lt;LI&gt;I saw that a Folder was created ("/opt/splunk/etc/apps/nameofmyapp/appserver")&lt;/LI&gt;
&lt;LI&gt;I have only user rights on th server, so i cannot see waht happed under "appserver"&lt;/LI&gt;
&lt;LI&gt;tried example above with  tag at dashboard source, with no success&lt;/LI&gt;
&lt;LI&gt;tried different path names of the image with no success&lt;/LI&gt;
&lt;LI&gt;searching around the internet... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/LI&gt;
&lt;LI&gt;Converted Dashboard to HTML -&amp;gt; same problem&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Its every time the broken image, but not the picture.&lt;/P&gt;

&lt;P&gt;Who has the magic to solve this, or to explain how it will work - I can't find THE documentation...?&lt;BR /&gt;
thx&lt;BR /&gt;
sven&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111816#M6387</guid>
      <dc:creator>outofheapspace</dc:creator>
      <dc:date>2020-09-29T06:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111817#M6388</link>
      <description>&lt;P&gt;Hi outofheapspace,&lt;/P&gt;

&lt;P&gt;Just double check the name of the image. Make sure it is same as it shows on the server.&lt;BR /&gt;
Even image extension case should be the same.&lt;BR /&gt;
i.e. if image name is "abc.JPG", then you should mention "/static/app/urapp/abc.JPG" only, not "/static/app/urapp/abc.jpg".&lt;BR /&gt;
Otherwise it will throw 404 error.&lt;BR /&gt;
Sometimes we ignore these small things but they will make you go crazy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 10:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111817#M6388</guid>
      <dc:creator>chahal3108</dc:creator>
      <dc:date>2015-10-14T10:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111818#M6389</link>
      <description>&lt;P&gt;Hi. &lt;BR /&gt;
We found the following solution:&lt;BR /&gt;
Uploading Picture to physical path on searchhead: &lt;BR /&gt;
"/opt/splunk/etc/apps/$myappname$/appserver/static/picture.jpg"&lt;/P&gt;

&lt;P&gt;We used the following line in Panel-Source:&lt;/P&gt;

&lt;P&gt;img src="&lt;A href="https://hostname:8000/en-US/static/app/$myappname$/picture.jpg"&gt;https://hostname:8000/en-US/static/app/$myappname$/picture.jpg&lt;/A&gt;" alt="picture"&lt;/P&gt;

&lt;P&gt;Next Problem is to replace the picture with a new one.&lt;BR /&gt;
It seens that we need to restart the splunk or webserver deamon.&lt;BR /&gt;
My way is to delete the picture und creating a new with a new name.&lt;/P&gt;

&lt;P&gt;I hope this bad things will be fixed in later versions, because I want to use splunk, not to administrate it.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111818#M6389</guid>
      <dc:creator>outofheapspace</dc:creator>
      <dc:date>2015-10-21T13:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111819#M6390</link>
      <description>&lt;P&gt;It works, thanks a lot!!!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111819#M6390</guid>
      <dc:creator>Lindaiyu</dc:creator>
      <dc:date>2016-03-03T16:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111820#M6391</link>
      <description>&lt;P&gt;In order to display a static image on a dashboard I created the images directory on the path below - &lt;/P&gt;

&lt;P&gt;C:\Program Files\Splunk\etc\apps\search\appserver\static\images\&lt;/P&gt;

&lt;P&gt;The dashboard with the embedded images have the following source:&lt;/P&gt;

&lt;P&gt;Roberto Test&lt;BR /&gt;
   See if html panels work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
  &amp;lt;h1&amp;gt;HTML Panel Example&amp;lt;/h1&amp;gt;
  &amp;lt;p&amp;gt;The HTML panel displays inline HTML.&amp;lt;/p&amp;gt;
    &amp;lt;pre&amp;gt;&amp;lt;img src="/static/app/search/images/pretty1.jpg"/&amp;gt;&amp;lt;/pre&amp;gt;
 &amp;lt;/html&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;row&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;h1&amp;gt;HTML Panel Example&amp;lt;/h1&amp;gt;
  &amp;lt;p&amp;gt;The HTML panel displays inline HTML.&amp;lt;/p&amp;gt;
    &amp;lt;pre&amp;gt;&amp;lt;img src="/static/app/search/images/pretty2.jpg"/&amp;gt;&amp;lt;/pre&amp;gt;
 &amp;lt;/html&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Was very useful to install the Dashboard 6.x examples app - &lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 19:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111820#M6391</guid>
      <dc:creator>arkonner</dc:creator>
      <dc:date>2017-01-11T19:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed an image in a simple XML dashboard with HTML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111821#M6392</link>
      <description>&lt;P&gt;Wow. I got it to work, and I don't know why.&lt;/P&gt;

&lt;P&gt;In my code, I have:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;img src="/static/app/search/images/zg9ac8.jpg"/&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But, my directory structure is:&lt;BR /&gt;
&lt;CODE&gt;/opt/splunk/etc/apps/search/static/images/zg9ac8.jpg&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Why does this work? Am I only one that thinks this is weird?&lt;/P&gt;

&lt;P&gt;No &lt;EM&gt;wonder&lt;/EM&gt; this has been kicking my butt for so long. I stopped trying to understand it, and went with Arkonner's pathing, then removed all the jpgs I had in multiple directories, until I found that combination above. &lt;/P&gt;

&lt;P&gt;So, my new questions is:  WTF?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-an-image-in-a-simple-XML-dashboard-with-HTML/m-p/111821#M6392</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-06-29T17:48:24Z</dc:date>
    </item>
  </channel>
</rss>

