<?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: Is it possible to highlight a specific term from an inputlookup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283114#M176284</link>
    <description>&lt;P&gt;You're right about 'OR' being highlighted due to the subsearch returning a giant OR expression. You can avoid this by changing the subsearch of highlight command as below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=proxysg sourcetype=proxysg_base [|inputlookup aterms.csv | return 10000 $aterms] | highlight  [|inputlookup aterms.csv | table aterms | rename aterms as search | format "" "" "" "" "" ""]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 30 Oct 2016 16:49:33 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-10-30T16:49:33Z</dc:date>
    <item>
      <title>Is it possible to highlight a specific term from an inputlookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283110#M176280</link>
      <description>&lt;P&gt;All;&lt;BR /&gt;
I am running Splunk 6.3.5 and need to see what term "hits" in the resulting event. The search is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=proxysg sourcetype=proxysg_base [|inputlookup aterms.csv | return 10000 $aterms]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I attempted to use &lt;CODE&gt;index=proxysg sourcetype=proxysg_base [|inputlookup aterms.csv | return 10000 $aterms] |highlight $aterms&lt;/CODE&gt; &lt;BR /&gt;
with no luck.&lt;/P&gt;

&lt;P&gt;Is this possible? I have seen this done automatically in 6.5. without the &lt;CODE&gt;|highlight&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283110#M176280</guid>
      <dc:creator>TheJagoff</dc:creator>
      <dc:date>2016-10-27T16:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to highlight a specific term from an inputlookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283111#M176281</link>
      <description>&lt;P&gt;i don't think you can use the $. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.3.5/SearchReference/Highlight"&gt;https://docs.splunk.com/Documentation/Splunk/6.3.5/SearchReference/Highlight&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 18:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283111#M176281</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-10-27T18:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to highlight a specific term from an inputlookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283112#M176282</link>
      <description>&lt;P&gt;The highlight accepts the string that you want to highlight. You're passing string to your base search to filter records, pass same strings to highlight commands using subsearch like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=proxysg sourcetype=proxysg_base [|inputlookup aterms.csv | return 10000 $aterms] | highlight  [|inputlookup aterms.csv | return 10000 $aterms]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Oct 2016 18:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283112#M176282</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-27T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to highlight a specific term from an inputlookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283113#M176283</link>
      <description>&lt;P&gt;Hi, yes that works and many thanks! It also highlights the word "or" in the events log so I'm assuming that this is occurring because of the implied "expression1" or "expression2" or "expresion3" or ...  that is happening due to the inputlookup? I'm guessing that this will just have to be because of the nature of the command. Many thanks again.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2016 14:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283113#M176283</guid>
      <dc:creator>TheJagoff</dc:creator>
      <dc:date>2016-10-30T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to highlight a specific term from an inputlookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283114#M176284</link>
      <description>&lt;P&gt;You're right about 'OR' being highlighted due to the subsearch returning a giant OR expression. You can avoid this by changing the subsearch of highlight command as below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=proxysg sourcetype=proxysg_base [|inputlookup aterms.csv | return 10000 $aterms] | highlight  [|inputlookup aterms.csv | table aterms | rename aterms as search | format "" "" "" "" "" ""]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 30 Oct 2016 16:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-highlight-a-specific-term-from-an-inputlookup/m-p/283114#M176284</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-30T16:49:33Z</dc:date>
    </item>
  </channel>
</rss>

