<?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 highlight only specific term? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31307#M6454</link>
    <description>&lt;P&gt;Thank you for your post.&lt;BR /&gt;
* I accepted the first one&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2012 09:11:12 GMT</pubDate>
    <dc:creator>melonman</dc:creator>
    <dc:date>2012-08-17T09:11:12Z</dc:date>
    <item>
      <title>How to highlight only specific term?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31303#M6450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to highlight only a specific term specified by highlight command like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* man | highlight from
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, with the search above, "man" and "from" are highlighted.&lt;BR /&gt;
Is there any way to highlight only "from"? &lt;BR /&gt;
(I don't want to highlight "man", which is search result from a search before pipe.)&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 04:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31303#M6450</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2012-08-10T04:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight only specific term?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31304#M6451</link>
      <description>&lt;P&gt;Not really an answer, but I don't think this is easily possible... there is an old question relating to this &lt;A href="http://splunk-base.splunk.com/answers/6678/how-do-i-turn-off-highlighting"&gt;here&lt;/A&gt; (it mentions the CSS method which I don't think is worth it as you will still want to highlight terms). &lt;/P&gt;

&lt;P&gt;So I think the answer to your question is "no", unless the "man" term is something that can be extracted as a field (or part of a field) in which case you could modify your search to something like..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* yourField=man | highlight from
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would stop the highlighting, as it will be filtering on the fields.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 09:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31304#M6451</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-08-10T09:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight only specific term?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31305#M6452</link>
      <description>&lt;P&gt;Sure, but its not particularly pretty. Splunk won't highlight any field matches in your search terms, so blah=man will not be highlighted.&lt;/P&gt;

&lt;P&gt;A quick and dirty way to do this (I would be more specific on the rex &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) is;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* something=morespecific source=blah | rex "(?&amp;lt;my_field&amp;gt;man)" | search my_field=man| highlight from
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2012 09:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31305#M6452</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-08-10T09:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight only specific term?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31306#M6453</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;
This is something I need to do, I understood.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2012 09:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31306#M6453</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2012-08-17T09:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight only specific term?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31307#M6454</link>
      <description>&lt;P&gt;Thank you for your post.&lt;BR /&gt;
* I accepted the first one&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2012 09:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-only-specific-term/m-p/31307#M6454</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2012-08-17T09:11:12Z</dc:date>
    </item>
  </channel>
</rss>

