<?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 make local image accessible to dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584759#M47945</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;thanks for helping!&lt;/P&gt;&lt;P&gt;As I don't have the write access to the Splunk server, I had to ask the admin to place the folder weatherAssets for me. Now, it has been placed at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/etc/apps/ics_analysis/weatherAssets/lowTemp.png&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is a way to use the above path somehow still make the image accessible to the dashboard?&lt;/P&gt;&lt;P&gt;Or do I have to place the image at&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/opt/splunk/etc/apps/ics_analysis/appserver/static/lowTemp.png&lt;/PRE&gt;&lt;P&gt;to make it work?&lt;/P&gt;&lt;P&gt;Where is the documentation for the rule of placing image?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 15:41:02 GMT</pubDate>
    <dc:creator>yshen</dc:creator>
    <dc:date>2022-02-11T15:41:02Z</dc:date>
    <item>
      <title>How to make local image accessible to dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584593#M47925</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;I use the following to define an icon, to display on my dashboard:&lt;BR /&gt;eval coldImg = "/weatherAssets/apps/ics_analysis/lowTemp.png"&lt;BR /&gt;in the Simple XML for the dashboard.&lt;/DIV&gt;&lt;DIV class=""&gt;Here is the path for the image:&lt;BR /&gt;/opt/splunk/etc/apps/ics_analysis/weatherAssets/lowTemp.pngwhere&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ics_analysis&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the name of the app and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;weatherAssets&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the folder for&amp;nbsp;the icons.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;It used to display, when I had the following:&lt;BR /&gt;eval coldImg = "&lt;A href="https://image.flaticon.com/icons/png/512/1312/1312331.png" target="_blank" rel="noopener noreferrer"&gt;https://image.flaticon.com/icons/png/512/1312/1312331.png&lt;/A&gt;"&lt;/DIV&gt;&lt;DIV class=""&gt;but now it only shows a broken image icon.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;What could be wrong? How can I debug the problem?&lt;BR /&gt;It's frustrating that I don't know how to find out the error message to the issue.&lt;/DIV&gt;&lt;DIV class=""&gt;Do I have to restart the Splunk server, or bump my dashboard?&lt;BR /&gt;(I just did reload the web page.)&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks for your help!&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Feb 2022 21:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584593#M47925</guid>
      <dc:creator>yshen</dc:creator>
      <dc:date>2022-02-10T21:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to make local image accessible to dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584669#M47928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222699"&gt;@yshen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;usually images are stored in the appserver/static folder, so you could put your images in&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/etc/apps/ics_analysis/appserver/static/lowTemp.png&lt;/LI-CODE&gt;&lt;P&gt;so, when you call the image in your dashboard, you can use the address:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;img src="/static/app/ics_analysis/lowTemp.png" style="width:800px;border:0;"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 07:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584669#M47928</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-11T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make local image accessible to dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584759#M47945</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;thanks for helping!&lt;/P&gt;&lt;P&gt;As I don't have the write access to the Splunk server, I had to ask the admin to place the folder weatherAssets for me. Now, it has been placed at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/etc/apps/ics_analysis/weatherAssets/lowTemp.png&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is a way to use the above path somehow still make the image accessible to the dashboard?&lt;/P&gt;&lt;P&gt;Or do I have to place the image at&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/opt/splunk/etc/apps/ics_analysis/appserver/static/lowTemp.png&lt;/PRE&gt;&lt;P&gt;to make it work?&lt;/P&gt;&lt;P&gt;Where is the documentation for the rule of placing image?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 15:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584759#M47945</guid>
      <dc:creator>yshen</dc:creator>
      <dc:date>2022-02-11T15:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to make local image accessible to dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584767#M47946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222699"&gt;@yshen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;using the absolute path, it should run! event if I usually prefer to use the correct relative path.&lt;/P&gt;&lt;P&gt;Anyway, if it doesn't run, say to your administrator to check ownership and grants on the images.&lt;/P&gt;&lt;P&gt;You can find more information at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#html" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Do-we-upload-image-on-indexer-under-specific-app-to-use-in/m-p/394876" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Do-we-upload-image-on-indexer-under-specific-app-to-use-in/m-p/394876&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/StyleGuide/current/StyleGuide/screenshots" target="_blank"&gt;https://docs.splunk.com/Documentation/StyleGuide/current/StyleGuide/screenshots&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 16:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584767#M47946</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-11T16:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make local image accessible to dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584792#M47950</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;Thank for your further help!&lt;/P&gt;&lt;P&gt;From the information that you shared me, it seems that the image MUST be at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/opt/splunk/etc/apps/ics_analysis/appserver/static/lowTemp.png&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;I wonder if it will work as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/opt/splunk/etc/apps/ics_analysis/appserver/static/weatherAssets/lowTemp.png&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;as the application is large. I hope to have better separation within.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But even more unfortunate, the administrator is not responsive to help me at the moment. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Therefore,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I'm very interested in your mentioned "absolute path". I wish that it would refer and access to my image at its current, non-standard location. But I could not find any information of how to express the absolute path in the Simple XML.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you elaborate it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584792#M47950</guid>
      <dc:creator>yshen</dc:creator>
      <dc:date>2022-02-11T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make local image accessible to dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584836#M47951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222699"&gt;@yshen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry, no absolute path doesn't run because the path is always calculated from the home app folder, so you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/static/app/ics_analysis/../../weatherAssets/lowTemp.png&lt;/LI-CODE&gt;&lt;P&gt;but I'm not sure that it runs.&lt;/P&gt;&lt;P&gt;There another option:&lt;/P&gt;&lt;P&gt;if you ave an admin role, you could add objects to your App and Splunk automatically pus these objects in the appserver/static folder, you can do this in this way:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;open the Apps dropdown,&lt;/LI&gt;&lt;LI&gt;click on Manage Apps,&lt;/LI&gt;&lt;LI&gt;click on AppEdit properties,&lt;/LI&gt;&lt;LI&gt;in the bottom of the form there's a button "Find File"&lt;/LI&gt;&lt;LI&gt;Save.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You have to do this one file at a time.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2022 06:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584836#M47951</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-12T06:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make local image accessible to dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584866#M47952</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;Clever idea!&lt;/P&gt;&lt;P&gt;I tried your suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the outcome:&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.bart.gov/en-US/static/app/ics_analysis/../../weatherAssets/lowTemp.png" target="_blank" rel="noopener"&gt;https://splunk.bart.gov/en-US/static/app/ics_analysis/../../weatherAssets/lowTemp.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it is translated by the browser (Chrome) or Splunk server as:&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.bart.gov/en-US/static/weatherAssets/lowTemp.png" target="_blank" rel="noopener"&gt;https://splunk.bart.gov/en-US/static/weatherAssets/lowTemp.png&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;again failed.&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.bart.gov/en-US/static/app/ics_analysis/../weatherAssets/lowTemp.png" target="_blank" rel="noopener"&gt;https://splunk.bart.gov/en-US/static/app/ics_analysis/../weatherAssets/lowTemp.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it is converted as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.bart.gov/en-US/static/app/weatherAssets/lowTemp.png" target="_blank" rel="noopener"&gt;https://splunk.bart.gov/en-US/static/app/weatherAssets/lowTemp.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It looks that the browser performed the translation of the /.. literally before reaching the web server.&lt;/P&gt;&lt;P&gt;Yes, I may try to manually upload the asset individually as last resort.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, the manual approach works! Here is the proof:&lt;/P&gt;&lt;P&gt;At&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.bart.gov/en-US/static/app/ics_analysis/lowTemp.png" target="_blank" rel="noopener"&gt;https://splunk.bart.gov/en-US/static/app/ics_analysis/lowTemp.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The indented image is shown. Furthermore, the following also works in the dashboard:&lt;/P&gt;&lt;P&gt;| eval coldImg = "/static/app/ics_analysis/lowTemp.png"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Disappointed with Splunk's implementation, I guess, this is the best I can do.&lt;/P&gt;&lt;P&gt;(Why the disappointment, we're working with a big app, there are 3 to 5 engineers improving it, if I have to manually add about a dozen icons to apps/ics_analysis/appserver/static, suffering from the unnecessary repetition. That directory will be a big soup of mess, that no one can understand the files left there completely.)&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 12 Feb 2022 23:24:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584866#M47952</guid>
      <dc:creator>yshen</dc:creator>
      <dc:date>2022-02-12T23:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to make local image accessible to dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584876#M47954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222699"&gt;@yshen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 09:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-local-image-accessible-to-dashboard/m-p/584876#M47954</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-13T09:45:28Z</dc:date>
    </item>
  </channel>
</rss>

