<?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 do you color a specific word in the logs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409459#M173539</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I use the query below in order to extract events that have only "Failed Error code : " in the logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="ai-wkst-windows-fr" sourcetype=applog "Failed Error code : " 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I would also like to color "Failed Error code : " background in red.&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;

&lt;P&gt;rgs&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jan 2019 12:07:38 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2019-01-18T12:07:38Z</dc:date>
    <item>
      <title>How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409459#M173539</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I use the query below in order to extract events that have only "Failed Error code : " in the logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="ai-wkst-windows-fr" sourcetype=applog "Failed Error code : " 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I would also like to color "Failed Error code : " background in red.&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;

&lt;P&gt;rgs&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 12:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409459#M173539</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-18T12:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409460#M173540</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;did you try highlight?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.1/SearchReference/Highlight"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.1/SearchReference/Highlight&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There is also rangemap but this is only for values in a numeric field &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Rangemap"&gt;https://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Rangemap&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 12:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409460#M173540</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-18T12:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409461#M173541</link>
      <description>&lt;P&gt;hi thanks but highlight doesnt color the value, exact???&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 16:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409461#M173541</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-19T16:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409462#M173542</link>
      <description>&lt;P&gt;It will highlight in the event view any word for your current search that you want. Where do you want it to be highlighted?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 16:22:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409462#M173542</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-19T16:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409463#M173543</link>
      <description>&lt;P&gt;@jip31 if you are using filter "Failed Error Code" and your search is returning raw events which are displayed inside &lt;CODE&gt;&amp;lt;event&amp;gt;&lt;/CODE&gt; view, you would not need &lt;CODE&gt;highlight&lt;/CODE&gt; command exclusively.&lt;/P&gt;

&lt;P&gt;In order to color background red instead of default yellow, you can try the following CSS override in the dashboard.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     .event .raw-event .a{
        background-color: red;
        border-top: 4px solid red;
        border-bottom: 4px solid red;
        color: white;
      }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere example with &lt;CODE&gt;&amp;lt;event&amp;gt;&lt;/CODE&gt; view  with id="my_event". &lt;/P&gt;

&lt;P&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/6389i2289E7CCAF0F626F/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;Please try out and confirm if this is what is required:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Event Viewer&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;
          #my_event.event .raw-event .a{
            background-color: red;
            border-top: 4px solid red;
            border-bottom: 4px solid red;
            color: white;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;event id="my_event"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd "ERROR" OR "FAIL*"&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="raw.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
      &amp;lt;/event&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>Sat, 19 Jan 2019 19:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409463#M173543</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-19T19:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409464#M173544</link>
      <description>&lt;P&gt;i want to highlight "Failed Error code : " &lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 07:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409464#M173544</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-21T07:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409465#M173545</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;
this is my panel code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;"app.log" logs - "Failed Error code"&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Source :&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| loadjob savedsearch="admin:SA_AI_NR_S180_FOAnalyser_Workstation_Monitoring_sh:FO_EventServiceLog_Logs_applog" 
| search host=$tok_filterhost$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$tok_filtertime.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$tok_filtertime.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If i Try to update it with your code I have :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
              &amp;lt;style&amp;gt;
                  .dashboard-header p.description {
                       font-size: 16px;
                       font-weight: bold;
                       font-family: Arial;
                       font-style: italic;
                       color: black;
                       padding-top: 40px;
                   }

                         #my_event.event .raw-event .a{
                 background-color: red;
            border-top: 4px solid red;
             border-bottom: 4px solid red;
             color: white;
           }

               &amp;lt;/style&amp;gt;
            &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;"app.log" logs - "Failed Error code"&amp;lt;/title&amp;gt;
             &amp;lt;event id="my_event"&amp;gt;
        &amp;lt;title&amp;gt;Source :&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| loadjob savedsearch="admin:SA_AI_NR_S180_FOAnalyser_Workstation_Monitoring_sh:FO_EventServiceLog_Logs_applog" 
| search host=$tok_filterhost$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$tok_filtertime.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$tok_filtertime.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
       &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
      &amp;lt;option name="raw.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
      &amp;lt;option name="table.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
      &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
     &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;

    &amp;lt;/event&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I have no error but the query doesn't works!&lt;BR /&gt;
i have the message "the search did not give any events"&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 08:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409465#M173545</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-21T08:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409466#M173546</link>
      <description>&lt;P&gt;Have you an idea why I got the message i have "the search did not give any events"&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 06:32:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409466#M173546</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-22T06:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409467#M173547</link>
      <description>&lt;P&gt;sorry but id doesnt works&lt;BR /&gt;
ERROR is well highlighted but not in red&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 07:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409467#M173547</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-24T07:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you color a specific word in the logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409468#M173548</link>
      <description>&lt;P&gt;nobody cant help me please???&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 08:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-color-a-specific-word-in-the-logs/m-p/409468#M173548</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-28T08:17:13Z</dc:date>
    </item>
  </channel>
</rss>

