<?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: Wildcards in lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292587#M88321</link>
    <description>&lt;P&gt;I have done it according this answer and it works &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>Fri, 30 Jun 2017 13:54:44 GMT</pubDate>
    <dc:creator>andrey2007</dc:creator>
    <dc:date>2017-06-30T13:54:44Z</dc:date>
    <item>
      <title>Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292586#M88320</link>
      <description>&lt;P&gt;I'm trying to use wildcards in a lookup file and am not able to get them working. I have referenced other posted answers but am not having success. Steps I have taken:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Created a lookup file called 'dt_s.csv' using the web interface by uploading the following content:&lt;/P&gt;

&lt;P&gt;cs_host, is_suspicious&lt;BR /&gt;
&lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt;, yes&lt;BR /&gt;
&lt;A href="http://www.*" target="_blank"&gt;www.*&lt;/A&gt;, yes&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Created a lookup definition called 'dt' using the web interface, based off dt_s.csv&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Our administrator added the below to transforms.conf on the &lt;STRONG&gt;indexers&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[dt]&lt;BR /&gt;
filename = dt_s.csv&lt;BR /&gt;
match_type = WILDCARD(cs_host)&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;When I run a search such as '&lt;STRONG&gt;-search- | lookup dt cs_host | head 50 | fields cs_host, is_suspicious&lt;/STRONG&gt;' I only get results for &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; and nothing for any other &lt;A href="http://www.*" target="_blank"&gt;www.*&lt;/A&gt; entries.&lt;/P&gt;

&lt;P&gt;What are we doing wrong? Is there any other step-by-step official documentation on how to set this up? Thank you.&lt;/P&gt;

&lt;P&gt;Answer in comments below: In a pre v6.6 deployment with indexers separate from search head, the [dt] section above has to be added to the local transforms.conf on indexers AND the search head. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292586#M88320</guid>
      <dc:creator>dewoodruff</dc:creator>
      <dc:date>2020-09-29T14:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292587#M88321</link>
      <description>&lt;P&gt;I have done it according this answer and it works &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>Fri, 30 Jun 2017 13:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292587#M88321</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2017-06-30T13:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292588#M88322</link>
      <description>&lt;P&gt;Including the props.conf changes? I was under the impression props.conf should only be necessary if we want the lookup to be automatic, which I definitely do NOT in this case.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 13:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292588#M88322</guid>
      <dc:creator>dewoodruff</dc:creator>
      <dc:date>2017-06-30T13:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292589#M88323</link>
      <description>&lt;P&gt;We used it only with props.conf&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:15:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292589#M88323</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2017-06-30T14:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292590#M88324</link>
      <description>&lt;P&gt;I don't understand. You only made the props.conf changes and not the transforms.conf changes? &lt;/P&gt;

&lt;P&gt;Can you share your lookup name and the what you put in props.conf as an example?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292590#M88324</guid>
      <dc:creator>dewoodruff</dc:creator>
      <dc:date>2017-06-30T14:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292591#M88325</link>
      <description>&lt;P&gt;transforms.conf seems correct. Problem with your search query&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292591#M88325</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-06-30T14:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292592#M88326</link>
      <description>&lt;P&gt;to clarify we done it with transforms.conf and props.conf as we used automatic lookups and did not tested it with transforms.conf only. So our configs was same as in example:&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[yoursourcetype]&lt;BR /&gt;
 LOOKUP-user = userlookup user OUTPUT username&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[userlookup]&lt;BR /&gt;
 filename = userlookup.csv&lt;BR /&gt;
 match_type = WILDCARD(user)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292592#M88326</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2017-06-30T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292593#M88327</link>
      <description>&lt;P&gt;Thanks. Did you deploy the transforms.conf changes on the search head or on the indexers?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 19:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292593#M88327</guid>
      <dc:creator>dewoodruff</dc:creator>
      <dc:date>2017-06-30T19:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292594#M88328</link>
      <description>&lt;P&gt;I tested this and got successful results with &lt;/P&gt;

&lt;P&gt;index=* &lt;BR /&gt;
| head 1 &lt;BR /&gt;
| eval cs_host="&lt;A href="http://www.foo.com" target="_blank"&gt;www.foo.com&lt;/A&gt;" &lt;BR /&gt;
| lookup dt cs_host  | fields cs_host, is_suspicious&lt;/P&gt;

&lt;P&gt;I get the same results with &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; and &lt;A href="http://www.foo.com" target="_blank"&gt;www.foo.com&lt;/A&gt; (i.e. is_suspicious=yes).&lt;/P&gt;

&lt;P&gt;2 things to consider:&lt;/P&gt;

&lt;P&gt;1) Look at app context and permissions on the lookup knowledge objects. I doubt this is your issue since it works for the google domain.&lt;/P&gt;

&lt;P&gt;2) I was able to do this all from the GUI without having to edit my transforms manually by configuring "advanced" options under the lookup definition, and using WILDCARD(cs_host) as my match type.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292594#M88328</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2020-09-29T14:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292595#M88329</link>
      <description>&lt;P&gt;Adauria,&lt;/P&gt;

&lt;P&gt;I made the change in the advanced options, adding WILDCARD(process), and then ran the following search where I'm trying to match on executables other than the two paths, but I'm seeing all process file names and not just defrag.exe that I copied to the desktop and executed.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=XmlWinEventLog:Microsoft-Windows-Sysmon/Operational EventCode=1 Image!=Windows\\System32 Image!=Windows\\SysWOW64 | eval process=lower(process) | lookup isWindowsSystemFile_lookup process | search systemFile=true | table _time dest host user process Image
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292595#M88329</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2017-07-12T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292596#M88330</link>
      <description>&lt;P&gt;What does your lookup csv look like? Maybe your wildcards are too broad? &lt;/P&gt;

&lt;P&gt;|inputlookup isWindowsSystemFile_lookup&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292596#M88330</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2017-07-12T13:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292597#M88331</link>
      <description>&lt;P&gt;Figured out what the issue was - had the modify the search to as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=XmlWinEventLog:Microsoft-Windows-Sysmon/Operational EventCode=1 NOT ("Windows\\System32" OR "Windows\\SysWOW64") | eval process=lower(process) | lookup isWindowsSystemFile_lookup process | search systemFile=true | table _time dest host user process Image
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292597#M88331</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2017-07-12T13:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292598#M88332</link>
      <description>&lt;P&gt;Lookup file is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;process                                         systemFile
arp.exe*                                            true
adaptertroubleshooter.exe*          true
applicationframehost.exe*           true
atbroker.exe*                                   true
authhost.exe*                                   true
autoworkplace.exe*                  true
etc                                                       etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thx    &lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292598#M88332</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2017-07-12T13:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292599#M88333</link>
      <description>&lt;P&gt;Thanks Andrew. We're still on 6.5.4 which does not have that option in the web interface, and we're some months away for a 6.6.x upgrade. The administrator put the configuration block in /opt/splunk/etc/system/local/transforms.conf on the indexers only, not on the search head. Do you think it needs to be added to the search head as well? Does splunk need to be reloaded for the changes to take affect?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:44:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292599#M88333</guid>
      <dc:creator>dewoodruff</dc:creator>
      <dc:date>2017-07-12T15:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292600#M88334</link>
      <description>&lt;P&gt;Yes - lookups are a search-time transform, not index-time. I'm pretty sure transforms.conf must be on the search head for this to work. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.3/Knowledge/Searchtimeoperationssequence"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.3/Knowledge/Searchtimeoperationssequence&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;I'm not sure if it will require reloading, but you can do this without necessarily restarting the search head by hitting the REST endpoint. See here:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/102568/reload-transforms-conf-without-restarting-splunk.html"&gt;https://answers.splunk.com/answers/102568/reload-transforms-conf-without-restarting-splunk.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292600#M88334</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2017-07-12T15:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292601#M88335</link>
      <description>&lt;P&gt;Andrew, that did it. We added transforms.conf section to the search head as well and now it's working. &lt;/P&gt;

&lt;P&gt;So in short, in a pre v6.6 deployment with indexers separate from search head, the [dt] section above has to be added to the local transforms.conf on indexers AND the search head. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 21:37:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-lookup-file/m-p/292601#M88335</guid>
      <dc:creator>dewoodruff</dc:creator>
      <dc:date>2017-07-13T21:37:32Z</dc:date>
    </item>
  </channel>
</rss>

