<?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: Populate field based on subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392151#M114136</link>
    <description>&lt;P&gt;IMO, a single ldapsearch query to populate the helpdesk.csv file would be more performant than a separate ldapsearch for each row found in the security index each time this query runs.  Your AD admin will appreciate it.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 13:59:27 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-02-20T13:59:27Z</dc:date>
    <item>
      <title>Populate field based on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392150#M114135</link>
      <description>&lt;P&gt;I have a Splunk query that parses out some Windows event log data.  One of the things that I examine is the user name mentioned in the event to see if they are in a lookup file.  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=security EventCode=5136 | AdminName=AccountName | lookup helpdesk.csv AdminName OUTPUT AdminName AS HelpDesk | eval IsHelpDesk = if (match(HelpDesk,"^\w+"),"TRUE","FALSE") | table _time,AdminName,IsHelpDesk,User,OtherStuff
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I generate the contents of helpdesk.csv ever morning (it's an ldapsearch that pulls the membership of some groups).&lt;/P&gt;

&lt;P&gt;I am wondering if there is a way to do the above search without generating the helpdesk.csv lookup file every day and instead populate TRUE or FALSE for IsHelpDesk based on a subsearch (that uses ldapsearch to see if the user is a member of a group) to create a temporary lookup table so it can all be done in a single search?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 12:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392150#M114135</guid>
      <dc:creator>evetsleep</dc:creator>
      <dc:date>2019-02-20T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Populate field based on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392151#M114136</link>
      <description>&lt;P&gt;IMO, a single ldapsearch query to populate the helpdesk.csv file would be more performant than a separate ldapsearch for each row found in the security index each time this query runs.  Your AD admin will appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392151#M114136</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-02-20T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Populate field based on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392152#M114137</link>
      <description>&lt;P&gt;Yeah I am kind of hoping of a way to do it as a one-time thing (at that moment), but as part of a search.  So generate a look up table and reference that table in the same search.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:03:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392152#M114137</guid>
      <dc:creator>evetsleep</dc:creator>
      <dc:date>2019-02-20T14:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Populate field based on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392153#M114138</link>
      <description>&lt;P&gt;Why?  Doing so mean you'll be hitting the LDAP server each time the search runs instead of once each day to build the lookup file.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392153#M114138</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-02-22T13:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Populate field based on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392154#M114139</link>
      <description>&lt;P&gt;If you have Splunk Enterprise, the users can be part of asset/identity lookups/KV store and the user fields will be auto extracted for you. In the absense of ES, your best would be to run a LDAP search each day or twice each day and update the single lookup and may be make it automated lookup?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Populate-field-based-on-subsearch/m-p/392154#M114139</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-28T09:22:24Z</dc:date>
    </item>
  </channel>
</rss>

