<?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: lookup table using like syntax in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-using-like-syntax/m-p/103810#M26845</link>
    <description>&lt;P&gt;Thanks, worked like a charm!!!!&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2013 13:55:59 GMT</pubDate>
    <dc:creator>rdownie</dc:creator>
    <dc:date>2013-10-17T13:55:59Z</dc:date>
    <item>
      <title>lookup table using like syntax</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-using-like-syntax/m-p/103808#M26843</link>
      <description>&lt;P&gt;If I have a lookup table that contains the following:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
mstring,category&lt;BR /&gt;
%-mdfa,network&lt;BR /&gt;
%-mdfb,network&lt;BR /&gt;
%cam,camera&lt;BR /&gt;
%-avaya,phone&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
and I want to match it using a like syntax (SQL or where hostname like mstring) where I could have b01k-mdfa return network for category. Is there a way to do this with a lookup?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 12:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table-using-like-syntax/m-p/103808#M26843</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2013-10-17T12:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table using like syntax</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-using-like-syntax/m-p/103809#M26844</link>
      <description>&lt;P&gt;Not using % as wildcard, but &lt;CODE&gt;*&lt;/CODE&gt;. When you define your lookup table in transforms.conf, you can specify a &lt;CODE&gt;MATCH_TYPE&lt;/CODE&gt;. Set this to &lt;CODE&gt;WILDCARD&lt;/CODE&gt; and you will be able to lookup values using a table similar to yours. Something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mstring,category
*-mdfa,network
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Transformsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Transformsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 13:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table-using-like-syntax/m-p/103809#M26844</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-17T13:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table using like syntax</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-using-like-syntax/m-p/103810#M26845</link>
      <description>&lt;P&gt;Thanks, worked like a charm!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 13:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table-using-like-syntax/m-p/103810#M26845</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2013-10-17T13:55:59Z</dc:date>
    </item>
  </channel>
</rss>

