<?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 add image to splunk single value panel? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436920#M1488</link>
    <description>&lt;P&gt;@karthi25 are you interested in images or icons to be displayed? Is drilldown the only reason for you to have single value panel? Can you have jQuery based drilldown (if so Status Indicator and html panel both would work)?&lt;/P&gt;

&lt;P&gt;Here is an example from one of older answers of mine on similar approach: &lt;A href="https://answers.splunk.com/answers/590581/refresh-data-in-table-by-collecting-token-on-click.html"&gt;https://answers.splunk.com/answers/590581/refresh-data-in-table-by-collecting-token-on-click.html&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 14:24:06 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-03-11T14:24:06Z</dc:date>
    <item>
      <title>How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436917#M1485</link>
      <description>&lt;P&gt;Am working on Splunk xml, I need to add image to a single value panel. The image needs to  change based on the results. I know that we can use html tag inside the panel , but I want to have image in a single value panel  because I need to drilldown to other panel when I click on that image.&lt;/P&gt;

&lt;P&gt;When I tried by setting background image , the result of the single value panel query is getting overrided with image as below&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6679iABE51C623D64A8B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Can anyone please help me with some solutions.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436917#M1485</guid>
      <dc:creator>karthi25</dc:creator>
      <dc:date>2019-03-11T12:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436918#M1486</link>
      <description>&lt;P&gt;Hi @karthi25&lt;/P&gt;

&lt;P&gt;Try the following code, it will set a background image based on the result. If it's not satisfied your requirement please give more information.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;testsingle&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #test{
             background-image:$path$  !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;single id="test"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" |stats count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="'result.count' &amp;lt;200"&amp;gt;
              &amp;lt;set token="path"&amp;gt;url("/static/app/search/appLogo.png")&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="'result.count' &amp;gt;=201"&amp;gt;
              &amp;lt;set token="path"&amp;gt;url("/static/app/search/appIcon.png")&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;http://google.com&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Mar 2019 13:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436918#M1486</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-03-11T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436919#M1487</link>
      <description>&lt;P&gt;If you want to use an Icon (and want to change that Icon based on the results)  have you looked at:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/3119/"&gt;https://splunkbase.splunk.com/app/3119/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can use any of the 5000 icons from Font Awesome:&lt;BR /&gt;
&lt;A href="https://fontawesome.com/icons?from=io"&gt;https://fontawesome.com/icons?from=io&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 14:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436919#M1487</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-11T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436920#M1488</link>
      <description>&lt;P&gt;@karthi25 are you interested in images or icons to be displayed? Is drilldown the only reason for you to have single value panel? Can you have jQuery based drilldown (if so Status Indicator and html panel both would work)?&lt;/P&gt;

&lt;P&gt;Here is an example from one of older answers of mine on similar approach: &lt;A href="https://answers.splunk.com/answers/590581/refresh-data-in-table-by-collecting-token-on-click.html"&gt;https://answers.splunk.com/answers/590581/refresh-data-in-table-by-collecting-token-on-click.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 14:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436920#M1488</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-11T14:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436921#M1489</link>
      <description>&lt;P&gt;@vnravikumar  I don't have permission to add any images directly to splunk "/static/app/search"  directory. Is there any way to upload the image from splunk UI.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436921#M1489</guid>
      <dc:creator>karthi25</dc:creator>
      <dc:date>2019-03-12T10:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436922#M1490</link>
      <description>&lt;P&gt;Hi @karthi25 &lt;/P&gt;

&lt;P&gt;Try by going to &lt;CODE&gt;Manage  Apps&lt;/CODE&gt;  then click on &lt;CODE&gt;Edit properties&lt;/CODE&gt; in your respective app. In &lt;CODE&gt;Upload asset&lt;/CODE&gt; choose the required image and click save&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436922#M1490</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-03-12T10:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436923#M1491</link>
      <description>&lt;P&gt;@vnravikumar  It works, but the image is not properly setting  its bigger in size, also the values in the single panel is also showing , i want only the image based on the value.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 12:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436923#M1491</guid>
      <dc:creator>karthi25</dc:creator>
      <dc:date>2019-03-12T12:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436924#M1492</link>
      <description>&lt;P&gt;Can you please upload the image&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 12:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436924#M1492</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-03-12T12:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436925#M1493</link>
      <description>&lt;P&gt;Yes. I have updated my question.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 12:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436925#M1493</guid>
      <dc:creator>karthi25</dc:creator>
      <dc:date>2019-03-12T12:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add image to splunk single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436926#M1494</link>
      <description>&lt;P&gt;I have added opacity and z-index it was working fine. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 13:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-add-image-to-splunk-single-value-panel/m-p/436926#M1494</guid>
      <dc:creator>karthi25</dc:creator>
      <dc:date>2019-03-12T13:11:13Z</dc:date>
    </item>
  </channel>
</rss>

