<?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: How do you include additional fields from an inputlookup in results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427429#M122392</link>
    <description>&lt;P&gt;Figured out the issue in that the username was in call caps so whenever I would try to call another field like LastName, FirstName, or Role no results were returned, but calling just the user field would return the user.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 14:55:03 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2018-10-19T14:55:03Z</dc:date>
    <item>
      <title>How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427417#M122380</link>
      <description>&lt;P&gt;I have the following search in which I match up the user field from the lookup to the index, getting the top return of only the admin accounts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo [| inputlookup admin_accts |  fields user ] 
| stats count by user 
| sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The lookup admin_accts also has three other fields - "Last Name", "First Name", and "Role". &lt;/P&gt;

&lt;P&gt;How do I modify the search so that those three additional fields are listed in the results?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 12:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427417#M122380</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-10-16T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427418#M122381</link>
      <description>&lt;P&gt;@jwalzerpitt,&lt;/P&gt;

&lt;P&gt;Try ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo|stats count by user 
| lookup admin_accts user OUTPUT "Last Name", "First Name", "Role"
|where Role!=""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should avoid your sub-search with the inputlookup. Compare the results and also the performane&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 13:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427418#M122381</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-16T13:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427419#M122382</link>
      <description>&lt;P&gt;Or...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   index=foo [| inputlookup admin_accts |  fields user ] 
 | stats count by user 
 | lookup admin_accts user OUTPUT "Last Name", "First Name", "Role"
 | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 13:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427419#M122382</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-10-16T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427420#M122383</link>
      <description>&lt;P&gt;Thx for the reply&lt;/P&gt;

&lt;P&gt;If I try the search above, it doesn't match on the users in the lookup file. For example, using my original search, six users are returned. Using your suggested search, I get no results at all.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427420#M122383</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-10-16T14:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427421#M122384</link>
      <description>&lt;P&gt;Dal,&lt;/P&gt;

&lt;P&gt;Using your suggested search, I see the six users, but the other fields returned are blank. For the heck of it, I removed the space between the two fields first name and last name (now they're Lastname and FirstName) to see if that made a difference, but still, the same result with the users returned, but the three other fields blank.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427421#M122384</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-10-16T14:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427422#M122385</link>
      <description>&lt;P&gt;Also, I did an&lt;CODE&gt;| inputlookup admin_accts&lt;/CODE&gt; and the table is returned with the columns FirstName LastName, Role, and user to verify the lookup table&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427422#M122385</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-10-16T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427423#M122386</link>
      <description>&lt;P&gt;are you getting result for &lt;CODE&gt;index=foo|stats count by user&lt;/CODE&gt; ? If yes, then are  the field name in search and lookup same - &lt;CODE&gt;user&lt;/CODE&gt; ? &lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427423#M122386</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-16T14:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427424#M122387</link>
      <description>&lt;P&gt;I am - the field for the index is "user" and the field in the lookup is "user"&lt;/P&gt;

&lt;P&gt;With my search, the results returned filters on only the users in the lookup&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427424#M122387</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-10-16T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427425#M122388</link>
      <description>&lt;P&gt;Since the lookup is not working in both suggestions , we shall re-look at the lookup definitions. Just to test, can you try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval user="give here one of your admin username"|lookup admin_accts user OUTPUT "Last Name", "First Name", "Role"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If we are not getting the result for this, then we might have a problem in lookup definition&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 03:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427425#M122388</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-17T03:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427426#M122389</link>
      <description>&lt;P&gt;A user is returned, but no values for the LastName, FirstName, and Role&lt;/P&gt;

&lt;P&gt;Thx &lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 12:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427426#M122389</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-10-17T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427427#M122390</link>
      <description>&lt;P&gt;That tells us that there might be a problem in lookup because we just did a simple lookup. Could there be a space in user value in lookup or any other special character? Try creating a simple csv file with one or two records from the original lookup file and upload  it as .csv and repeat the above sample search against that file.csv. Once you are able to get that lookup fixed, the original search provided should work.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427427#M122390</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-17T14:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427428#M122391</link>
      <description>&lt;P&gt;@jwalzerpitt - the output fields should be spelled and capitalized exactly as they are on the lookup file.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | lookup admin_accts user OUTPUT LastName FirstName Role
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427428#M122391</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-10-19T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do you include additional fields from an inputlookup in results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427429#M122392</link>
      <description>&lt;P&gt;Figured out the issue in that the username was in call caps so whenever I would try to call another field like LastName, FirstName, or Role no results were returned, but calling just the user field would return the user.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-include-additional-fields-from-an-inputlookup-in/m-p/427429#M122392</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-10-19T14:55:03Z</dc:date>
    </item>
  </channel>
</rss>

