<?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 Outputlookup Before Lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Outputlookup-Before-Lookup/m-p/756794#M243132</link>
    <description>&lt;P&gt;I'm working with a search that starts by filtering for all process events in Windows and then sending them to a lookup file using outputlookup&amp;nbsp;with the 'append' flag set to false so it resets each run. For example, &lt;EM&gt;process_events.csv&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;The following lines then applies various filters to the search, brining it down to only a small handful of events.&lt;BR /&gt;&lt;BR /&gt;The next lines then use the lookup command to pull from the new lookup file created at the start with all the process events prior to filtering. Using it, I create fields showing the grandparent process for the remaining process events.&lt;BR /&gt;&lt;BR /&gt;With the grandparent process added, I use a subsearch in the below manner to filter out events which match a separate lookup table I use as a whitelist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search NOT 
    [ inputlookup whitelist
    | fields + src_hostname user grandparent_process_path parent_process_path process_path]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue, I'm afraid, is how Splunk's order of operations works. When the search runs on its schedule, it's like the lookup commands are parsed before the outputlookup command despite that not being how the search is written. Because of this, I feel like it checks the prior instance of &lt;EM&gt;process_events.csv&amp;nbsp;&lt;/EM&gt;before it's been regenerated by outputlookup with fresh data. As such, the grandparent_process_path field comes back as "n/a" rather than being filled properly so that it can be checked against the whitelist properly.&lt;BR /&gt;&lt;BR /&gt;Am I thinking along the right lines here? Is there some nuance of outputlookup I'm missing? If so, any ideas on fixing it, or am I gonna need to scrap this whole idea to add in grandparent processes to process event logs?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Dec 2025 09:56:10 GMT</pubDate>
    <dc:creator>dtaylor</dc:creator>
    <dc:date>2025-12-26T09:56:10Z</dc:date>
    <item>
      <title>Outputlookup Before Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Outputlookup-Before-Lookup/m-p/756794#M243132</link>
      <description>&lt;P&gt;I'm working with a search that starts by filtering for all process events in Windows and then sending them to a lookup file using outputlookup&amp;nbsp;with the 'append' flag set to false so it resets each run. For example, &lt;EM&gt;process_events.csv&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;The following lines then applies various filters to the search, brining it down to only a small handful of events.&lt;BR /&gt;&lt;BR /&gt;The next lines then use the lookup command to pull from the new lookup file created at the start with all the process events prior to filtering. Using it, I create fields showing the grandparent process for the remaining process events.&lt;BR /&gt;&lt;BR /&gt;With the grandparent process added, I use a subsearch in the below manner to filter out events which match a separate lookup table I use as a whitelist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search NOT 
    [ inputlookup whitelist
    | fields + src_hostname user grandparent_process_path parent_process_path process_path]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue, I'm afraid, is how Splunk's order of operations works. When the search runs on its schedule, it's like the lookup commands are parsed before the outputlookup command despite that not being how the search is written. Because of this, I feel like it checks the prior instance of &lt;EM&gt;process_events.csv&amp;nbsp;&lt;/EM&gt;before it's been regenerated by outputlookup with fresh data. As such, the grandparent_process_path field comes back as "n/a" rather than being filled properly so that it can be checked against the whitelist properly.&lt;BR /&gt;&lt;BR /&gt;Am I thinking along the right lines here? Is there some nuance of outputlookup I'm missing? If so, any ideas on fixing it, or am I gonna need to scrap this whole idea to add in grandparent processes to process event logs?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 09:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Outputlookup-Before-Lookup/m-p/756794#M243132</guid>
      <dc:creator>dtaylor</dc:creator>
      <dc:date>2025-12-26T09:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Outputlookup Before Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Outputlookup-Before-Lookup/m-p/756796#M243133</link>
      <description>&lt;P&gt;Subsearches are performed first, before the main search executes.&amp;nbsp; That's why there's nothing for the &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; command to find.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 13:12:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Outputlookup-Before-Lookup/m-p/756796#M243133</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-12-26T13:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Outputlookup Before Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Outputlookup-Before-Lookup/m-p/756800#M243134</link>
      <description>&lt;P&gt;This is basically the same problem you asked about last month (which you said you had solved), however, pursuing the other solutions offered at the time might prove more helpful in this instance?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Dec 2025 00:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Outputlookup-Before-Lookup/m-p/756800#M243134</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-12-27T00:10:33Z</dc:date>
    </item>
  </channel>
</rss>

