<?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 How to highlight eventtypes when using dropdown list? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-eventtypes-when-using-dropdown-list/m-p/95125#M5192</link>
    <description>&lt;P&gt;Hi, I've assigned custom syles to certain eventtypes following this blog entry: &lt;A href="http://blogs.splunk.com/2010/10/26/colorize-your-world-or-at-least-your-splunk-results/"&gt;Colorize your world...&lt;/A&gt; As usual I've built my app on top of the 'sample_app' template distributed with Splunk. Everything works fine when I use the 'Search views'-&amp;gt;'Sample search' to list the events. The problem is that color styles don't work when I list same event types in another dashboard which uses dropdown list (lister) to narrow down search results. How can I force event (color) highlighting when using dropdown lists? I have the following code in my lister dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
&amp;lt;label&amp;gt;Vulnerabilities by host&amp;lt;/label&amp;gt;

&amp;lt;!-- define master search template, with replacement tokens delimited with $ --&amp;gt;
&amp;lt;searchTemplate&amp;gt;index=scs | eval time=_time | search [search index=scs hostIP="$hostIP$"  | stats latest(_time) as time2 | eval time=time2 | fields time]&amp;lt;/searchTemplate&amp;gt;

&amp;lt;fieldset&amp;gt;
    &amp;lt;!-- Define a simple dropdown form driven by a search --&amp;gt;
    &amp;lt;input type="dropdown" token="hostIP"&amp;gt;
        &amp;lt;label&amp;gt;Select to address&amp;lt;/label&amp;gt;
        &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
        &amp;lt;populatingSearch fieldForValue="hostIP" fieldForLabel="hostIP"&amp;gt;&amp;lt;![CDATA[index=scs | stats count by hostIP]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;!-- output the results as a 50 row events view --&amp;gt;
    &amp;lt;event&amp;gt;
        &amp;lt;title&amp;gt;Vulnerabilities for the selected host&amp;lt;/title&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jan 2013 14:50:37 GMT</pubDate>
    <dc:creator>yahooku</dc:creator>
    <dc:date>2013-01-22T14:50:37Z</dc:date>
    <item>
      <title>How to highlight eventtypes when using dropdown list?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-eventtypes-when-using-dropdown-list/m-p/95125#M5192</link>
      <description>&lt;P&gt;Hi, I've assigned custom syles to certain eventtypes following this blog entry: &lt;A href="http://blogs.splunk.com/2010/10/26/colorize-your-world-or-at-least-your-splunk-results/"&gt;Colorize your world...&lt;/A&gt; As usual I've built my app on top of the 'sample_app' template distributed with Splunk. Everything works fine when I use the 'Search views'-&amp;gt;'Sample search' to list the events. The problem is that color styles don't work when I list same event types in another dashboard which uses dropdown list (lister) to narrow down search results. How can I force event (color) highlighting when using dropdown lists? I have the following code in my lister dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
&amp;lt;label&amp;gt;Vulnerabilities by host&amp;lt;/label&amp;gt;

&amp;lt;!-- define master search template, with replacement tokens delimited with $ --&amp;gt;
&amp;lt;searchTemplate&amp;gt;index=scs | eval time=_time | search [search index=scs hostIP="$hostIP$"  | stats latest(_time) as time2 | eval time=time2 | fields time]&amp;lt;/searchTemplate&amp;gt;

&amp;lt;fieldset&amp;gt;
    &amp;lt;!-- Define a simple dropdown form driven by a search --&amp;gt;
    &amp;lt;input type="dropdown" token="hostIP"&amp;gt;
        &amp;lt;label&amp;gt;Select to address&amp;lt;/label&amp;gt;
        &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
        &amp;lt;populatingSearch fieldForValue="hostIP" fieldForLabel="hostIP"&amp;gt;&amp;lt;![CDATA[index=scs | stats count by hostIP]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;!-- output the results as a 50 row events view --&amp;gt;
    &amp;lt;event&amp;gt;
        &amp;lt;title&amp;gt;Vulnerabilities for the selected host&amp;lt;/title&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 14:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-eventtypes-when-using-dropdown-list/m-p/95125#M5192</guid>
      <dc:creator>yahooku</dc:creator>
      <dc:date>2013-01-22T14:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight eventtypes when using dropdown list?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-eventtypes-when-using-dropdown-list/m-p/95126#M5193</link>
      <description>&lt;P&gt;Ok, I've managed to make a workaround using custom js similar to this one &lt;A href="http://splunk-base.splunk.com/answers/42994/advanced-xml-highlight-certain-values-in-a-table-not-numerical"&gt;Advanced XML - Highlight certain values in a table&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 08:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-eventtypes-when-using-dropdown-list/m-p/95126#M5193</guid>
      <dc:creator>yahooku</dc:creator>
      <dc:date>2013-01-23T08:27:19Z</dc:date>
    </item>
  </channel>
</rss>

