<?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: Inputlookup and Index rename returning null results in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-and-Index-rename-returning-null-results/m-p/331348#M93092</link>
    <description>&lt;P&gt;hey below query should work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=adusers [|inputlookup vip | rename username as SamAccountName | fields SamAccountName] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it is not then follow the below checklist:&lt;/P&gt;

&lt;P&gt;1) &lt;CODE&gt;SamAccountName&lt;/CODE&gt; field exists in &lt;CODE&gt;index=adusers&lt;/CODE&gt;?&lt;BR /&gt;
2) &lt;CODE&gt;username&lt;/CODE&gt; field values match the values(case insensitive) in the &lt;CODE&gt;SamAccountName&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 08:57:11 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-04-11T08:57:11Z</dc:date>
    <item>
      <title>Inputlookup and Index rename returning null results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-and-Index-rename-returning-null-results/m-p/331347#M93091</link>
      <description>&lt;P&gt;I have an index called "adusers".  This index pulls in all information about enabled user accounts.  For the purposes of this post the values I am interested in is the "SamAccountName" so that I am able to then table information about "Surname, GivenName".  So when I see my index I can see&lt;/P&gt;

&lt;P&gt;SamAccountName = USER123&lt;BR /&gt;
Surname = Bloggs&lt;BR /&gt;
GivenName = Joe&lt;/P&gt;

&lt;P&gt;If I do a search on my index I get the data&lt;/P&gt;

&lt;P&gt;index=adusers name=user123 | table name, Surname, GivenName&lt;/P&gt;

&lt;P&gt;I also have a inputlookup file that I would like to reference.  The inputlookup file is a csv (lookup is called vip) that looks as follows:&lt;/P&gt;

&lt;P&gt;username&lt;/P&gt;

&lt;P&gt;user123&lt;BR /&gt;
user456&lt;BR /&gt;
userabc&lt;BR /&gt;
user987&lt;/P&gt;

&lt;P&gt;If I do the following search I get data&lt;/P&gt;

&lt;P&gt;|inputlookup vip&lt;/P&gt;

&lt;P&gt;What I am trying to do is to search on my index using the inputlookup but I am not getting any results (time is set to "All time").  So if I do the following search&lt;/P&gt;

&lt;P&gt;index=adusers [|inputlookup vip] ==&amp;gt; no results&lt;BR /&gt;
index=adusers [|inputlookup vip | rename SamAccountName as username] ==&amp;gt; no results&lt;BR /&gt;
index=adusers [|inputlookup vip | rename username as SameAccountName] ==&amp;gt; no results&lt;BR /&gt;
index=adusers [|inputlookup vip | rename SamAccountName as username | fields username] ==&amp;gt; no results&lt;BR /&gt;
index=adusers [|inputlookup vip | rename username as SamAccountName | fields SamAccountName] ==&amp;gt; no results&lt;/P&gt;

&lt;P&gt;I have this query working on a different dashboard but as the fields are the same in both the index and lookup I don't have this problem.  I am trying to rename a field (either on the index or the lookup) so that I am able to search the information.  What I am trying to generate is:&lt;/P&gt;

&lt;P&gt;If a user exists in the inputlookup file (vip), look in the index (adusers) for that user and then from that index(adusers) get data (whatever) to generate a dashboard from it.  &lt;/P&gt;

&lt;P&gt;Where am I going wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-and-Index-rename-returning-null-results/m-p/331347#M93091</guid>
      <dc:creator>willadams</dc:creator>
      <dc:date>2018-04-11T08:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inputlookup and Index rename returning null results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-and-Index-rename-returning-null-results/m-p/331348#M93092</link>
      <description>&lt;P&gt;hey below query should work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=adusers [|inputlookup vip | rename username as SamAccountName | fields SamAccountName] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it is not then follow the below checklist:&lt;/P&gt;

&lt;P&gt;1) &lt;CODE&gt;SamAccountName&lt;/CODE&gt; field exists in &lt;CODE&gt;index=adusers&lt;/CODE&gt;?&lt;BR /&gt;
2) &lt;CODE&gt;username&lt;/CODE&gt; field values match the values(case insensitive) in the &lt;CODE&gt;SamAccountName&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-and-Index-rename-returning-null-results/m-p/331348#M93092</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-04-11T08:57:11Z</dc:date>
    </item>
  </channel>
</rss>

