<?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: Unable to output Lookup field when the field is not a Splunk Field. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640190#M221837</link>
    <description>&lt;P&gt;Your search in general is higly suboptimal. Most importantly, if you have any other option, &lt;STRONG&gt;do not&lt;/STRONG&gt; use search terms beginning with wildcards. It makes Splunk have process every single raw event which obviously is not very efficient. Also, try to not use stuff like "user!=-".&lt;/P&gt;&lt;P&gt;I'm not 100% sure if match type is honored when you're calling lookup by filename, not by definition name.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 10:44:32 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2023-04-17T10:44:32Z</dc:date>
    <item>
      <title>Why am I unable to output lookup field when the field is not a Splunk field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640182#M221833</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have an issue which i am unable to resolve. I have a lookup with two columns:&lt;/P&gt;
&lt;P&gt;Process_Command_Line, score&lt;/P&gt;
&lt;P&gt;Under 'Process_Command_Line', the values are wild carded e.g. *net user*.&lt;BR /&gt;&lt;BR /&gt;The 'score' column has an arbitrary numerical value added.&lt;/P&gt;
&lt;P&gt;The SPL is working with the 'Process_Command_Line' wild carded values and we only see events relevant to the Lookup values, but I cannot get the score value to be also visible. Is there something fundamentally incorrect with the SPL i am using:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;index=wineventlog&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;source="WinEventLog:&lt;/SPAN&gt;&lt;SPAN&gt;*" EventCode=4688 Process_Command_Line!="" user!="-" user="*&lt;/SPAN&gt;&lt;SPAN&gt;123serviceProd*"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;[| inputlookup SuspiciousDiscoveryActivity.csv | fields Process_Command_Line]&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;| dedup Process_Command_Line &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;| lookup SuspiciousDiscoveryActivity.csv Process_Command_Line as Process_Command_Line OUTPUTNEW score&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 07:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640182#M221833</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2023-04-18T07:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to output Lookup field when the field is not a Splunk Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640186#M221834</link>
      <description>&lt;P&gt;Have you defined the lookup to use WILDCARD lookups?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 09:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640186#M221834</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-17T09:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to output Lookup field when the field is not a Splunk Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640188#M221836</link>
      <description>&lt;P&gt;Yes we have this defined and the wildcards for the fields seem to be working for the 'Process_Command_Line' fields.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 10:28:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640188#M221836</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2023-04-17T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to output Lookup field when the field is not a Splunk Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640190#M221837</link>
      <description>&lt;P&gt;Your search in general is higly suboptimal. Most importantly, if you have any other option, &lt;STRONG&gt;do not&lt;/STRONG&gt; use search terms beginning with wildcards. It makes Splunk have process every single raw event which obviously is not very efficient. Also, try to not use stuff like "user!=-".&lt;/P&gt;&lt;P&gt;I'm not 100% sure if match type is honored when you're calling lookup by filename, not by definition name.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 10:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640190#M221837</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-17T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to output Lookup field when the field is not a Splunk Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640210#M221847</link>
      <description>&lt;P&gt;OK. I tested it and now I'm pretty sure that if you call lookup just by csv name it will not use the lookup settings defined for the lookup based on that lookup file.&lt;/P&gt;&lt;P&gt;So if I defined a simple one-row lookup table like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;host&lt;/TD&gt;&lt;TD width="50%"&gt;match&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;whate*&lt;/TD&gt;&lt;TD width="50%"&gt;true&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;saved it as wildcard_test.csv then defined a wildcard_test lookup with match type WILDCARD(host)&lt;/P&gt;&lt;P&gt;then run&lt;/P&gt;&lt;PRE&gt;| makeresults &lt;BR /&gt;| eval host="whatever" &lt;BR /&gt;| lookup wildcard_test host output match as match_lookup&lt;BR /&gt;| lookup wildcard_test.csv host output match as match_csv&lt;/PRE&gt;&lt;P&gt;I get a result of "true" only in the &lt;EM&gt;match_lookup&lt;/EM&gt; field which matches by the lookup definition. The field &lt;EM&gt;match_csv&lt;/EM&gt; which comes from the lookup based on just the csv field is not matched.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640210#M221847</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-17T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to output Lookup field when the field is not a Splunk Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640212#M221848</link>
      <description>&lt;P&gt;Thanks for taking the time to look at this. I will re-check to see what we are doing wrong compared to your example.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640212#M221848</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2023-04-17T13:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to output Lookup field when the field is not a Splunk Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640220#M221852</link>
      <description>&lt;P&gt;Thanks again, this fixed my issue. I had actually had the same config as you, but my wildcard match condition syntax was incorrect, I had&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WILDCARD(Process_Command_Line)&lt;/SPAN&gt;(score)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When it should have been just&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WILDCARD(Process_Command_Line)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Apr 2023 14:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-output-lookup-field-when-the-field-is-not-a/m-p/640220#M221852</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2023-04-17T14:34:54Z</dc:date>
    </item>
  </channel>
</rss>

