<?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: Why doesn't kvStore lookup work, but join does? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-doesn-t-kvStore-lookup-work-but-join-does/m-p/629238#M15286</link>
    <description>&lt;P&gt;Nope, no luck.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-01_14-06-51.jpg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23669i52BF4134808CFCB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-01_14-06-51.jpg" alt="2023-02-01_14-06-51.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If it helps, doing the lookup DOES do something, because this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=windows_client source="WinEventLog:PowerShell" Sid=S-1-2-34-56789012-345678901-234567890-123456
| eval objectSid="this has content"
| lookup AD_Obj_User objectSid AS Sid OUTPUT objectSid
| table  OU Sid objectSid&lt;/LI-CODE&gt;&lt;P&gt;returns a table that has the Sid column populated, but the other two columns blank (i.e., the lookup overwrites the "this has content" stuff in objectSid).&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 21:12:58 GMT</pubDate>
    <dc:creator>plaid_blanket</dc:creator>
    <dc:date>2023-02-01T21:12:58Z</dc:date>
    <item>
      <title>Why doesn't kvStore lookup work, but join does?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-doesn-t-kvStore-lookup-work-but-join-does/m-p/629158#M15279</link>
      <description>&lt;P&gt;I've got a kvStore lookup, AD_Obj_user, defined with fields objectSid, OU, sAMAccountName, and others.&amp;nbsp; It has case-insensitive matching.&lt;/P&gt;
&lt;P&gt;I've got events that contain the field Sid.&amp;nbsp; I want to lookup the sAMAccountName and automate the lookup, but right now not even the manual lookup works.&lt;/P&gt;
&lt;P&gt;This works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| inputlookup AD_Obj_User where objectSid=S-1-2-34-56789012-345678901-234567890-123456

    | table objectSid sAMAccountName OU&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but this does not work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=windows_client source="WinEventLog:PowerShell"  Sid=S-1-2-34-56789012-345678901-234567890-123456
| lookup AD_Obj_User objectSid AS Sid 
| table  OU Sid&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can do the lookup successfully, manually, by using this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=windows_client source="WinEventLog:PowerShell" Sid=S-1-2-34-56789012-345678901-234567890-123456
| eval objectSid=Sid
| join type=left objectSid [| inputlookup AD_Obj_User 
    | table objectSid sAMAccountName OU]
| eval User=sAMAccountName
| fields - sAMAccountName&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it won't get me towards automating the lookup.&lt;/P&gt;
&lt;P&gt;Any ideas?&amp;nbsp; I'm stumped.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-doesn-t-kvStore-lookup-work-but-join-does/m-p/629158#M15279</guid>
      <dc:creator>plaid_blanket</dc:creator>
      <dc:date>2023-02-01T16:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't kvStore lookup work, but join does?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-doesn-t-kvStore-lookup-work-but-join-does/m-p/629192#M15281</link>
      <description>&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=windows_client source="WinEventLog:PowerShell"  Sid=S-1-2-34-56789012-345678901-234567890-123456
| lookup AD_Obj_User objectSid AS Sid OUTPUT objectSid as Sid
| table  OU Sid&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;++If it helps, please consider accepting as answer++&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 17:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-doesn-t-kvStore-lookup-work-but-join-does/m-p/629192#M15281</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2023-02-01T17:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't kvStore lookup work, but join does?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-doesn-t-kvStore-lookup-work-but-join-does/m-p/629238#M15286</link>
      <description>&lt;P&gt;Nope, no luck.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-01_14-06-51.jpg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23669i52BF4134808CFCB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-01_14-06-51.jpg" alt="2023-02-01_14-06-51.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If it helps, doing the lookup DOES do something, because this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=windows_client source="WinEventLog:PowerShell" Sid=S-1-2-34-56789012-345678901-234567890-123456
| eval objectSid="this has content"
| lookup AD_Obj_User objectSid AS Sid OUTPUT objectSid
| table  OU Sid objectSid&lt;/LI-CODE&gt;&lt;P&gt;returns a table that has the Sid column populated, but the other two columns blank (i.e., the lookup overwrites the "this has content" stuff in objectSid).&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 21:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-doesn-t-kvStore-lookup-work-but-join-does/m-p/629238#M15286</guid>
      <dc:creator>plaid_blanket</dc:creator>
      <dc:date>2023-02-01T21:12:58Z</dc:date>
    </item>
  </channel>
</rss>

