<?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: request lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-lookup-to-get-table/m-p/621815#M216154</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;thanks thats what i was looking for! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 08:27:58 GMT</pubDate>
    <dc:creator>simo</dc:creator>
    <dc:date>2022-11-23T08:27:58Z</dc:date>
    <item>
      <title>Help with lookup to get table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-lookup-to-get-table/m-p/621733#M216121</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a lookup as follow&lt;/P&gt;
&lt;TABLE width="235"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="107"&gt;ip&lt;/TD&gt;
&lt;TD width="64"&gt;id&lt;/TD&gt;
&lt;TD width="64"&gt;name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;111.111.111.111&lt;/TD&gt;
&lt;TD&gt;111&lt;/TD&gt;
&lt;TD&gt;simone&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;*&lt;/TD&gt;
&lt;TD&gt;222&lt;/TD&gt;
&lt;TD&gt;marco&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;in the index I have&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="171"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="107"&gt;ip&lt;/TD&gt;
&lt;TD width="64"&gt;id&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;111.111.111.111&lt;/TD&gt;
&lt;TD&gt;111&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;222.222.222.222&lt;/TD&gt;
&lt;TD&gt;222&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;333.333.333.333&lt;/TD&gt;
&lt;TD&gt;222&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the result I'm looking for is the following&lt;/P&gt;
&lt;TABLE width="235"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="107"&gt;ip&lt;/TD&gt;
&lt;TD width="64"&gt;id&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;111.111.111.111&lt;/TD&gt;
&lt;TD&gt;111&lt;/TD&gt;
&lt;TD&gt;simone&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;222.222.222.222&lt;/TD&gt;
&lt;TD&gt;222&lt;/TD&gt;
&lt;TD&gt;marco&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;333.333.333.333&lt;/TD&gt;
&lt;TD&gt;222&lt;/TD&gt;
&lt;TD&gt;marco&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can help me?&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;
&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 04:07:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-lookup-to-get-table/m-p/621733#M216121</guid>
      <dc:creator>simo</dc:creator>
      <dc:date>2022-11-23T04:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: request lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-lookup-to-get-table/m-p/621759#M216133</link>
      <description>&lt;P&gt;It would help to know what you've tried so far and why it didn't work for you.&amp;nbsp; Also, it's not clear what the key is in the lookup file.&amp;nbsp; Both ip and id appear to be the key, but only id is unique (at least in the example).&lt;/P&gt;&lt;P&gt;Did you try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup mylookup.csv id OUTPUT name&lt;/LI-CODE&gt;&lt;P&gt;If the asterisk in the ip column is intended as a wildcard then a standard lookup won't work because it treats the "*" literally.&amp;nbsp; The workaround is to create a lookup definition and add a wildcard field.&lt;/P&gt;&lt;P&gt;Go to Settings-&amp;gt;Lookups-&amp;gt;Lookup definition and click on New Lookup Definition.&amp;nbsp; Fill in the form to point to your lookup file then check the "Advanced options" box. In the "Match type" box enter &lt;FONT face="courier new,courier"&gt;WILDCARD(ip)&lt;/FONT&gt; and click Save.&amp;nbsp; Then the command becomes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup mylookup ip id OUTPUT name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 21:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-lookup-to-get-table/m-p/621759#M216133</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-22T21:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: request lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-lookup-to-get-table/m-p/621815#M216154</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;thanks thats what i was looking for! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 08:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-lookup-to-get-table/m-p/621815#M216154</guid>
      <dc:creator>simo</dc:creator>
      <dc:date>2022-11-23T08:27:58Z</dc:date>
    </item>
  </channel>
</rss>

