<?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_type wildcard not working for automatic lookup in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463298#M87762</link>
    <description>&lt;P&gt;Actually i had to wait for a while. Its working. thanks &lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 18:18:37 GMT</pubDate>
    <dc:creator>Bentash</dc:creator>
    <dc:date>2020-02-13T18:18:37Z</dc:date>
    <item>
      <title>match_type wildcard not working for automatic lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463292#M87756</link>
      <description>&lt;P&gt;Please any help will be appreciated. &lt;BR /&gt;
We have a lookup test_pci_asset.csv with a field nt_host&lt;BR /&gt;
values of nt_host are host1 host2&lt;/P&gt;

&lt;P&gt;Raw log in splunk host fields are host1.abc.com&lt;/P&gt;

&lt;P&gt;We are trying to use automatic lookup to match the host field so when we run a query it can pull back host1.abc.com as host.&lt;BR /&gt;
We tried the following with WILDCARD(nt_host) but no luck. Props and transforms below&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[default]&lt;BR /&gt;
LOOKUP-test_pci_asset.csv = test_pci_asset nt_host AS host OUTPUTNEW bunit category city ip owner&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[test_pci_asset]&lt;BR /&gt;
batch_index_query = 0&lt;BR /&gt;
case_sensitive_match = 0&lt;BR /&gt;
filename = test_pci_asset.csv&lt;BR /&gt;
match_type = WILDCARD(nt_host)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463292#M87756</guid>
      <dc:creator>Bentash</dc:creator>
      <dc:date>2020-09-30T04:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: match_type wildcard not working for automatic lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463293#M87757</link>
      <description>&lt;P&gt;Your lookup needs to contain the wildcard.&lt;BR /&gt;
Enter the hosts in your lookup file as &lt;CODE&gt;host1*, host2*&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 11:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463293#M87757</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-07T11:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: match_type wildcard not working for automatic lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463294#M87758</link>
      <description>&lt;P&gt;You cannot get features of a lookup definition if you reference the filename.csv. Create the lookup definition then use that name in the lookup command.  &lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 18:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463294#M87758</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2020-02-07T18:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: match_type wildcard not working for automatic lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463295#M87759</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;|inputlookup pci_asset_lists.csv | eval nt_host=nt_host."*" | outputlookup pci_asset_lists.cs&lt;BR /&gt;
I added * to the nt_host list with tquery above and still not working. Any ideas why?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463295#M87759</guid>
      <dc:creator>Bentash</dc:creator>
      <dc:date>2020-09-30T04:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: match_type wildcard not working for automatic lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463296#M87760</link>
      <description>&lt;P&gt;You need to use the lookup definition. You can not use a CSV file directly for a wildcard search.&lt;/P&gt;

&lt;P&gt;Test it works like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; |lookup test_pci_asset nt_host as host OUTPUTNEW bunit category city ip owner
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463296#M87760</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-13T18:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: match_type wildcard not working for automatic lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463297#M87761</link>
      <description>&lt;P&gt;also - check the lookup is as you expect:&lt;BR /&gt;
&lt;CODE&gt;|inputlookup test_pci_asset&lt;/CODE&gt; do the hotsnames include &lt;CODE&gt;*&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463297#M87761</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-13T18:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: match_type wildcard not working for automatic lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463298#M87762</link>
      <description>&lt;P&gt;Actually i had to wait for a while. Its working. thanks &lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463298#M87762</guid>
      <dc:creator>Bentash</dc:creator>
      <dc:date>2020-02-13T18:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: match_type wildcard not working for automatic lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463299#M87763</link>
      <description>&lt;P&gt;|inputlookup pci_asset_lists.csv | eval nt_host=nt_host."*" | outputlookup pci_asset_lists.csv&lt;/P&gt;

&lt;P&gt;sorry mistake in previous query&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/match-type-wildcard-not-working-for-automatic-lookup/m-p/463299#M87763</guid>
      <dc:creator>Bentash</dc:creator>
      <dc:date>2020-09-30T04:06:40Z</dc:date>
    </item>
  </channel>
</rss>

