<?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 customize my own event display but keep the &amp;quot;highlight effect&amp;quot; ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71642#M17895</link>
    <description>&lt;P&gt;I recently followed this document to customize the event display for my own eventtype :
&lt;A href="http://www.splunk.com/base/Documentation/4.1.5/Developer/EventRendering" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.5/Developer/EventRendering&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's quite interesting and useful, but I found the "highlight effect" of search keyword would be malfunctioned in my customized display. I know I should put some special code in my template to creat this effect, but I don't know how....&lt;/P&gt;

&lt;P&gt;Any tips or reference ?&lt;/P&gt;

&lt;P&gt;Leo Wang &lt;/P&gt;</description>
    <pubDate>Sat, 16 Oct 2010 23:48:33 GMT</pubDate>
    <dc:creator>leo_wang</dc:creator>
    <dc:date>2010-10-16T23:48:33Z</dc:date>
    <item>
      <title>How to customize my own event display but keep the "highlight effect" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71642#M17895</link>
      <description>&lt;P&gt;I recently followed this document to customize the event display for my own eventtype :
&lt;A href="http://www.splunk.com/base/Documentation/4.1.5/Developer/EventRendering" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.5/Developer/EventRendering&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's quite interesting and useful, but I found the "highlight effect" of search keyword would be malfunctioned in my customized display. I know I should put some special code in my template to creat this effect, but I don't know how....&lt;/P&gt;

&lt;P&gt;Any tips or reference ?&lt;/P&gt;

&lt;P&gt;Leo Wang &lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2010 23:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71642#M17895</guid>
      <dc:creator>leo_wang</dc:creator>
      <dc:date>2010-10-16T23:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize my own event display but keep the "highlight effect" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71643#M17896</link>
      <description>&lt;P&gt;Looks to me like you would need to define a highlight color for the matched terms class, such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.myEventRendererClass .a {
  background-color: #F5E998;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Oct 2010 03:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71643#M17896</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-10-17T03:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize my own event display but keep the "highlight effect" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71644#M17897</link>
      <description>&lt;P&gt;Thanks for your response. but it seems not working in my case. 
My simple event-rendering template is like this , which just use the field value to display my event data. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;%page args="job, event, request, options" /&amp;gt;
&amp;lt;% mydate = event.fields.get('date','') %&amp;gt;
&amp;lt;% mycase = event.fields.get('CaseDetail','No example') %&amp;gt; 
&amp;lt;% mydetail = event.fields.get('detail','none') %&amp;gt;
  &amp;lt;span id="eventTypeForm"/&amp;gt;
     &amp;lt;table border=1&amp;gt;
        &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt; &amp;lt;b&amp;gt;Date:&amp;lt;/b&amp;gt; ${mydate|h}&amp;lt;br/&amp;gt; &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt;  &amp;lt;b&amp;gt;Rule :&amp;lt;/b&amp;gt;${myrule|h}&amp;lt;br/&amp;gt; &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;
         &amp;lt;tr&amp;gt;&amp;lt;td colspan=2&amp;gt; ${mydetail} &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;
     &amp;lt;/table&amp;gt;

&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;enter code here&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 18:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71644#M17897</guid>
      <dc:creator>leo_wang</dc:creator>
      <dc:date>2010-10-22T18:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize my own event display but keep the "highlight effect" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71645#M17898</link>
      <description>&lt;P&gt;Have you specified/defined the appropriate CSS class?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2010 20:52:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71645#M17898</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-11-05T20:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize my own event display but keep the "highlight effect" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71646#M17899</link>
      <description>&lt;P&gt;Have a look here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/questions/4937/custom-event-renderer" rel="nofollow" target="_blank"&gt;http://answers.splunk.com/questions/4937/custom-event-renderer&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I had the same problem. If you exactly know how your event looks like and you have a predefined set of fields you can try putting this aroung your fields:&lt;/P&gt;

&lt;P&gt;SOME_VALUE_HERE&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-customize-my-own-event-display-but-keep-the-quot/m-p/71646#M17899</guid>
      <dc:creator>wollinet</dc:creator>
      <dc:date>2020-09-28T09:10:39Z</dc:date>
    </item>
  </channel>
</rss>

