<?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: Configure colour coded results by default in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85121#M4615</link>
    <description>&lt;P&gt;What you're looking for is &lt;A href="http://www.splunk.com/base/Documentation/4.1.5/Developer/EventRendering" rel="nofollow"&gt;Event Renderers&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;You might wish to take a look at this previous thread:
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;A href="http://answers.splunk.com/questions/7378/modifying-css-to-colorize-table-rows-in-dashboard-panel-with-event-renderer-conf" rel="nofollow"&gt;http://answers.splunk.com/questions/7378/modifying-css-to-colorize-table-rows-in-dashboard-panel-with-event-renderer-conf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In its simplest form, the three steps are:&lt;/P&gt;

&lt;UL&gt;

&lt;LI&gt;Create eventtypes in &lt;A href="http://www.splunk.com/base/Documentation/4.1.5/admin/Eventtypesconf" rel="nofollow"&gt;eventtypes.conf&lt;/A&gt; for each set of events to be colorized.

&lt;/LI&gt;&lt;LI&gt;Create matching entries in &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Event_renderersconf" rel="nofollow"&gt;event_renderers.conf&lt;/A&gt; for each of the eventtypes that you created. This maps each eventtype to a CSS class.

&lt;/LI&gt;&lt;LI&gt;Create your CSS classes in appserver/static/application.css for each of your new CSS classes. (You can also use a per-view CSS file by defining "stylesheet=xxx.css" in the XML for that view)

&lt;/LI&gt;&lt;/UL&gt;

&lt;P&gt;For example (adapted from the OSSEC app):&lt;/P&gt;

&lt;P&gt;&lt;B&gt;eventtypes.conf&lt;/B&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ossec_high_severity]
search = eventtype=ossec (severity&amp;gt;8)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;B&gt;event_renderers.conf&lt;/B&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[er_ossec_high_severity]
eventtype = ossec_high_severity
css_class = OssecHighSeverity
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;B&gt;appserver/static/application.css&lt;/B&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* Red-line border for high-severity events */
.splEvent-OssecHighSeverity table {
    border: solid red 1px;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to do more than basic formatting, then you can also customize the HTML template and/or JavaScript code for those events (&lt;A href="http://www.splunk.com/base/Documentation/4.1.5/Developer/EventRendering" rel="nofollow"&gt;link&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Here's another good CSS-only example, from a recent blog post:
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;A href="http://blogs.splunk.com/2010/10/26/colorize-your-world-or-at-least-your-splunk-results/" rel="nofollow"&gt;http://blogs.splunk.com/2010/10/26/colorize-your-world-or-at-least-your-splunk-results/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Nov 2010 10:31:45 GMT</pubDate>
    <dc:creator>southeringtonp</dc:creator>
    <dc:date>2010-11-07T10:31:45Z</dc:date>
    <item>
      <title>Configure colour coded results by default</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85120#M4614</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;How do you configure colour coding in general search results. I know i can use the rangemap command but in apps like OSSEC some general results are highlighted in a red border without using rangemap in the search string?&lt;/P&gt;

&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2010 07:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85120#M4614</guid>
      <dc:creator>quixand</dc:creator>
      <dc:date>2010-11-07T07:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Configure colour coded results by default</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85121#M4615</link>
      <description>&lt;P&gt;What you're looking for is &lt;A href="http://www.splunk.com/base/Documentation/4.1.5/Developer/EventRendering" rel="nofollow"&gt;Event Renderers&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;You might wish to take a look at this previous thread:
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;A href="http://answers.splunk.com/questions/7378/modifying-css-to-colorize-table-rows-in-dashboard-panel-with-event-renderer-conf" rel="nofollow"&gt;http://answers.splunk.com/questions/7378/modifying-css-to-colorize-table-rows-in-dashboard-panel-with-event-renderer-conf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In its simplest form, the three steps are:&lt;/P&gt;

&lt;UL&gt;

&lt;LI&gt;Create eventtypes in &lt;A href="http://www.splunk.com/base/Documentation/4.1.5/admin/Eventtypesconf" rel="nofollow"&gt;eventtypes.conf&lt;/A&gt; for each set of events to be colorized.

&lt;/LI&gt;&lt;LI&gt;Create matching entries in &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Event_renderersconf" rel="nofollow"&gt;event_renderers.conf&lt;/A&gt; for each of the eventtypes that you created. This maps each eventtype to a CSS class.

&lt;/LI&gt;&lt;LI&gt;Create your CSS classes in appserver/static/application.css for each of your new CSS classes. (You can also use a per-view CSS file by defining "stylesheet=xxx.css" in the XML for that view)

&lt;/LI&gt;&lt;/UL&gt;

&lt;P&gt;For example (adapted from the OSSEC app):&lt;/P&gt;

&lt;P&gt;&lt;B&gt;eventtypes.conf&lt;/B&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ossec_high_severity]
search = eventtype=ossec (severity&amp;gt;8)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;B&gt;event_renderers.conf&lt;/B&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[er_ossec_high_severity]
eventtype = ossec_high_severity
css_class = OssecHighSeverity
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;B&gt;appserver/static/application.css&lt;/B&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* Red-line border for high-severity events */
.splEvent-OssecHighSeverity table {
    border: solid red 1px;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to do more than basic formatting, then you can also customize the HTML template and/or JavaScript code for those events (&lt;A href="http://www.splunk.com/base/Documentation/4.1.5/Developer/EventRendering" rel="nofollow"&gt;link&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Here's another good CSS-only example, from a recent blog post:
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;A href="http://blogs.splunk.com/2010/10/26/colorize-your-world-or-at-least-your-splunk-results/" rel="nofollow"&gt;http://blogs.splunk.com/2010/10/26/colorize-your-world-or-at-least-your-splunk-results/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2010 10:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85121#M4615</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-11-07T10:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Configure colour coded results by default</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85122#M4616</link>
      <description>&lt;P&gt;Probably you are seeing the High-Low Overlay, which can be selected manually in any search results, or configured in Advanced XML with the "DataOverlay" module. I don't think there is an option to force-set it in Simple XML. There is also a Heatmap Overlay. Unfortunately, there really isn't a way to create any other overlays or significantly change these, but you might be able to use custom event renderers to do what you need.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2010 14:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85122#M4616</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-11-07T14:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Configure colour coded results by default</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85123#M4617</link>
      <description>&lt;P&gt;Ugh.. Nothing simply like  | where XXX&amp;gt;1000 turn red&lt;/P&gt;

&lt;P&gt;???&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 15:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Configure-colour-coded-results-by-default/m-p/85123#M4617</guid>
      <dc:creator>albyva</dc:creator>
      <dc:date>2013-09-17T15:50:31Z</dc:date>
    </item>
  </channel>
</rss>

