<?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 search help against lookup values in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/search-help-against-lookup-values/m-p/63558#M3922</link>
    <description>&lt;P&gt;eventtype=bluecoat [| inputlookup wfap_lookup | where wfap_priority=2 | fields wfap_indicator | rename wfap_indicator as search| format "" "(" "OR" ")" "OR" ""] user="test"&lt;/P&gt;

&lt;P&gt;The lookup will contain values such as:&lt;/P&gt;

&lt;P&gt;string     priority&lt;/P&gt;

&lt;P&gt;car   0&lt;BR /&gt;
"red car"   2&lt;BR /&gt;
"blue car"  1&lt;BR /&gt;
red   3&lt;/P&gt;

&lt;P&gt;The problem I am having is with the multi-string values.  For example, if I am looking for "red car", the search above will find within an event red and car, but not always as the string "red car".  The event might have someting like, "Red is a nice color.  A fast car is fun to drive".&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:27:34 GMT</pubDate>
    <dc:creator>mcbradford</dc:creator>
    <dc:date>2020-09-28T12:27:34Z</dc:date>
    <item>
      <title>search help against lookup values</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/search-help-against-lookup-values/m-p/63558#M3922</link>
      <description>&lt;P&gt;eventtype=bluecoat [| inputlookup wfap_lookup | where wfap_priority=2 | fields wfap_indicator | rename wfap_indicator as search| format "" "(" "OR" ")" "OR" ""] user="test"&lt;/P&gt;

&lt;P&gt;The lookup will contain values such as:&lt;/P&gt;

&lt;P&gt;string     priority&lt;/P&gt;

&lt;P&gt;car   0&lt;BR /&gt;
"red car"   2&lt;BR /&gt;
"blue car"  1&lt;BR /&gt;
red   3&lt;/P&gt;

&lt;P&gt;The problem I am having is with the multi-string values.  For example, if I am looking for "red car", the search above will find within an event red and car, but not always as the string "red car".  The event might have someting like, "Red is a nice color.  A fast car is fun to drive".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:27:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/search-help-against-lookup-values/m-p/63558#M3922</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2020-09-28T12:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: search help against lookup values</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/search-help-against-lookup-values/m-p/63559#M3923</link>
      <description>&lt;P&gt;You can check exactly what the subsearch will return by just running it on its own, including the &lt;CODE&gt;format&lt;/CODE&gt; at the end. I just tried recreating your scenario and get the search string &lt;CODE&gt;( "red car" ) OR ( "blue car" )&lt;/CODE&gt;. If you're getting the same string, I don't see why Splunk would behave like you describe. It should match the whole string, not inidividual words.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2012 16:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/search-help-against-lookup-values/m-p/63559#M3923</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-09-18T16:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: search help against lookup values</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/search-help-against-lookup-values/m-p/63560#M3924</link>
      <description>&lt;P&gt;I would agree with Ayn, but when I ran it, the search didn't have the quotes around "red car". I added this:  &lt;CODE&gt;| eval search = "\"" .search."\"" |&lt;/CODE&gt; before the format and it returned with the quoted "red car", which will search for "red car" and not "red AND car".&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2012 18:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/search-help-against-lookup-values/m-p/63560#M3924</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-09-18T18:25:04Z</dc:date>
    </item>
  </channel>
</rss>

