<?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: Match from a lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Match-from-a-lookup-table/m-p/324530#M96815</link>
    <description>&lt;P&gt;You'd need to change your lookup table to do wildcard match, then use the &lt;CODE&gt;lookup&lt;/CODE&gt; command instead of eval-case. See this link for a sample implementation of lookup with wildcard match. You'd need to add appropriate wildcard character &lt;CODE&gt;*&lt;/CODE&gt; in your lookup table field  url's value which you'll be matching with field wasRequestURL.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/52580/can-we-use-wildcard-characters-in-a-lookup-table.html"&gt;https://answers.splunk.com/answers/52580/can-we-use-wildcard-characters-in-a-lookup-table.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 21:23:54 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-04-09T21:23:54Z</dc:date>
    <item>
      <title>Match from a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-from-a-lookup-table/m-p/324529#M96814</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm new at Splunk and I need some help.&lt;BR /&gt;
I have a query that looks like this:&lt;BR /&gt;
sourcetype = ... index = ... | eval appel = box (match (wasRequestURL, ". * / api / smthg / smthgX /.&lt;EM&gt;/ smthgY"), "/ api / smthg / smthgX / {id} / smthgY", match (wasRequestURL, ". * / api /smthg/smthgX/.&lt;/EM&gt;/smthgY/.&lt;EM&gt;/smthgXY.&lt;/EM&gt;"),"/api/smthg/smthgX/{id}/smthgY/{id}/smthgXY ") |stats count, avg (ResponseTime) as TMoy by calls, http-method&lt;/P&gt;

&lt;P&gt;I created a lookup file that contains 2 fields:&lt;BR /&gt;
url,  url_corresp&lt;BR /&gt;
". * / Api / smthg / smthgX /.*/ smthgY",  "/ api / smthg / smthgX / {id} / smthgY"&lt;/P&gt;

&lt;P&gt;I would like to apply a match that loop on the url of the lookup and assign appel to the corresponding url, is it possible to do it?&lt;BR /&gt;
otherwise if there is another more optimized solution because I have a long list of urls that are heterogeneous and even a regex is heavy to apply!&lt;BR /&gt;
Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-from-a-lookup-table/m-p/324529#M96814</guid>
      <dc:creator>BenImen</dc:creator>
      <dc:date>2018-04-09T20:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Match from a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-from-a-lookup-table/m-p/324530#M96815</link>
      <description>&lt;P&gt;You'd need to change your lookup table to do wildcard match, then use the &lt;CODE&gt;lookup&lt;/CODE&gt; command instead of eval-case. See this link for a sample implementation of lookup with wildcard match. You'd need to add appropriate wildcard character &lt;CODE&gt;*&lt;/CODE&gt; in your lookup table field  url's value which you'll be matching with field wasRequestURL.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/52580/can-we-use-wildcard-characters-in-a-lookup-table.html"&gt;https://answers.splunk.com/answers/52580/can-we-use-wildcard-characters-in-a-lookup-table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 21:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-from-a-lookup-table/m-p/324530#M96815</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-09T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Match from a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-from-a-lookup-table/m-p/324531#M96816</link>
      <description>&lt;P&gt;I understand the solution but the problem now that I don't have access to transforms.conf &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;BR /&gt;
Anyway, thanks for your answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-from-a-lookup-table/m-p/324531#M96816</guid>
      <dc:creator>BenImen</dc:creator>
      <dc:date>2018-04-10T17:03:18Z</dc:date>
    </item>
  </channel>
</rss>

