<?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 Need help understanding Appending to Lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584960#M203784</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;I have the below search.&amp;nbsp; I am being told it appends results to a lookup table called &lt;STRONG&gt;user_ids&lt;/STRONG&gt;.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=ad earliest=-15d
|stats latest(_time) as _time, latest(profile.department) as bunit, latest(profile.legacyUsername) as legacyUsername, latest(profile.userType) as category by userID
| append [|inputlookup user_ids]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In all the posts i have seen so far, people recommend using &lt;STRONG&gt;outputlookup&lt;/STRONG&gt; command to append&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can someone pls explain &amp;nbsp;how does&amp;nbsp;&lt;STRONG&gt;append [|inputlookup user_identities]&amp;nbsp;&lt;/STRONG&gt; end up appending&amp;nbsp; in my case ? How is this different than&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;| outputlookup append=true user_ids.csv&amp;nbsp;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 Feb 2022 18:37:59 GMT</pubDate>
    <dc:creator>neerajs_81</dc:creator>
    <dc:date>2022-02-14T18:37:59Z</dc:date>
    <item>
      <title>Need help understanding Appending to Lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584960#M203784</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I have the below search.&amp;nbsp; I am being told it appends results to a lookup table called &lt;STRONG&gt;user_ids&lt;/STRONG&gt;.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=ad earliest=-15d
|stats latest(_time) as _time, latest(profile.department) as bunit, latest(profile.legacyUsername) as legacyUsername, latest(profile.userType) as category by userID
| append [|inputlookup user_ids]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In all the posts i have seen so far, people recommend using &lt;STRONG&gt;outputlookup&lt;/STRONG&gt; command to append&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can someone pls explain &amp;nbsp;how does&amp;nbsp;&lt;STRONG&gt;append [|inputlookup user_identities]&amp;nbsp;&lt;/STRONG&gt; end up appending&amp;nbsp; in my case ? How is this different than&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;| outputlookup append=true user_ids.csv&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Feb 2022 18:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584960#M203784</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2022-02-14T18:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Appending to Lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584965#M203785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229059"&gt;@neerajs_81&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the append command is use to append the results of a subsearch (also from a lookup) to the results of the main search.&lt;/P&gt;&lt;P&gt;If I correctly understood, you need to append the results of a search to a lookup, if this is correct, you have to use the outputlookup.&lt;/P&gt;&lt;P&gt;You can find information about both the commands at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Append" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Append&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Outputlookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Outputlookup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 11:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584965#M203785</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-14T11:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Appending to Lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584969#M203786</link>
      <description>&lt;P&gt;Thanks. So in my search what does&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| append [|inputlookup user_ids]&lt;/PRE&gt;&lt;P&gt;achieve?&amp;nbsp; &amp;nbsp;Is it appending the results to that user_ids lookup file ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 12:01:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584969#M203786</guid>
      <dc:creator>neerajs_81</dc:creator>
      <dc:date>2022-02-14T12:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Appending to Lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584971#M203787</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229059"&gt;@neerajs_81&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;no it appends the rows of the lookup TO your search results, not To the lookup!&lt;/P&gt;&lt;P&gt;In other words: "| append [|inputlookup user_ids]" appends FROM user_id.csv not TO this lookup.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 12:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-understanding-Appending-to-Lookup-file/m-p/584971#M203787</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-14T12:03:47Z</dc:date>
    </item>
  </channel>
</rss>

