<?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 use a lookup with wildcard based fields to search for matching field combinations? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-lookup-with-wildcard-based-fields-to-search-for/m-p/204663#M40382</link>
    <description>&lt;P&gt;your search query with data ..... | lookup msgId msg OUTPUT critical&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2016 11:52:25 GMT</pubDate>
    <dc:creator>thirumalreddyb</dc:creator>
    <dc:date>2016-01-04T11:52:25Z</dc:date>
    <item>
      <title>How to use a lookup with wildcard based fields to search for matching field combinations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-lookup-with-wildcard-based-fields-to-search-for/m-p/204662#M40381</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;

&lt;P&gt;My scenario is:&lt;/P&gt;

&lt;P&gt;1) lookup table with fields 3 fields&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;msgId,msg,critical
SHK5*,*BLABLABLA*,yes
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) events/incidents should be enriched with the field &lt;STRONG&gt;critical&lt;/STRONG&gt; in&lt;BR /&gt;
case BOTH fields of the lookup table (&lt;STRONG&gt;msgId&lt;/STRONG&gt; and &lt;STRONG&gt;msg&lt;/STRONG&gt;) are matching&lt;BR /&gt;
(i.e. both are AND-related, not OR-related)&lt;/P&gt;

&lt;P&gt;for example, the message&lt;/P&gt;

&lt;P&gt;SHKI5544 BLABLABLA    should match, but&lt;BR /&gt;
SHKI5544 LALALALA    not&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;my props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sf_splunk_assessment]
...
LOOKUP-assessmentOperationProblem = assessment_lookup_operation_problem msgId , msg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
[assessment_lookup_operation_problem]
filename = Operation_Problem_Detection.csv
match_type = WILDCARD(msgId,msg)
max_matches=2
min_matches=1
default_match=---
case_sensitive_match=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;======================&lt;/P&gt;

&lt;P&gt;But it does not work.&lt;/P&gt;

&lt;P&gt;Then I have a problem to exactly understand "max_matches":&lt;BR /&gt;
Does this value refer to a lookup given by both and related values, or does each one,  msg and msgId, counts +1? &lt;/P&gt;

&lt;P&gt;And in general, how does max_matches &amp;gt; 1 work? Will the looked-up value become part of any subsequent lookup? or does the lookup process always use the original value?&lt;/P&gt;

&lt;P&gt;Thanks for any feedback.&lt;/P&gt;

&lt;P&gt;best&lt;BR /&gt;
stephen&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 08:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-lookup-with-wildcard-based-fields-to-search-for/m-p/204662#M40381</guid>
      <dc:creator>DrFedtke</dc:creator>
      <dc:date>2016-01-04T08:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a lookup with wildcard based fields to search for matching field combinations?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-lookup-with-wildcard-based-fields-to-search-for/m-p/204663#M40382</link>
      <description>&lt;P&gt;your search query with data ..... | lookup msgId msg OUTPUT critical&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 11:52:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-lookup-with-wildcard-based-fields-to-search-for/m-p/204663#M40382</guid>
      <dc:creator>thirumalreddyb</dc:creator>
      <dc:date>2016-01-04T11:52:25Z</dc:date>
    </item>
  </channel>
</rss>

