<?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 usage in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338877#M93633</link>
    <description>&lt;P&gt;Assuming the following:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;lookuptable is named &lt;CODE&gt;lookuptable.csv&lt;/CODE&gt; when uploaded to splunk in the Destination filename box&lt;/LI&gt;
&lt;LI&gt;column header (cell A1) is called &lt;CODE&gt;user&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;field in your logs is called user&lt;/LI&gt;
&lt;LI&gt;entries in lookuptable match &lt;STRONG&gt;EXACTLY&lt;/STRONG&gt; to what is in your logs&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup lookuptable.csv | fields user 
| stats count by user search _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Dec 2017 16:32:18 GMT</pubDate>
    <dc:creator>DEAD_BEEF</dc:creator>
    <dc:date>2017-12-13T16:32:18Z</dc:date>
    <item>
      <title>Inputlookup usage</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338875#M93631</link>
      <description>&lt;P&gt;I have an inputlookup table with list of email addresses . I already have a pre existing field called user . How do I use this inputlookup with only those values which are present in my lookup table and the user field &lt;/P&gt;

&lt;P&gt;below is my search query :&lt;/P&gt;

&lt;P&gt;index=_audit action=search info=granted search=* NOT "search_id='scheduler" NOT "search='|history" NOT "user=splunk-system-user" NOT "search='typeahead" NOT "search='| metadata type=* | search totalCount&amp;gt;0" | stats count by user search _time | sort _time | convert ctime(_time) | stats list(_time) as time list(search) as search by user&lt;/P&gt;

&lt;P&gt;I am using this query for the purpose of finding the searches made by the users .&lt;BR /&gt;
And I have a lookup table , UserEmail with list of users who no longer exist but have scheduled searches still running . These user name are in user field also . I have to use my lookup table user values to result in my query&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338875#M93631</guid>
      <dc:creator>Mohsin123</dc:creator>
      <dc:date>2020-09-29T17:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inputlookup usage</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338876#M93632</link>
      <description>&lt;P&gt;Does your lookup table has exact user name values which matches values of field "user" from above search?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338876#M93632</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-13T16:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inputlookup usage</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338877#M93633</link>
      <description>&lt;P&gt;Assuming the following:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;lookuptable is named &lt;CODE&gt;lookuptable.csv&lt;/CODE&gt; when uploaded to splunk in the Destination filename box&lt;/LI&gt;
&lt;LI&gt;column header (cell A1) is called &lt;CODE&gt;user&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;field in your logs is called user&lt;/LI&gt;
&lt;LI&gt;entries in lookuptable match &lt;STRONG&gt;EXACTLY&lt;/STRONG&gt; to what is in your logs&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup lookuptable.csv | fields user 
| stats count by user search _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338877#M93633</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2017-12-13T16:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inputlookup usage</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338878#M93634</link>
      <description>&lt;P&gt;There are two different commands here.   You want &lt;CODE&gt;lookup&lt;/CODE&gt;, not &lt;CODE&gt;inputlookup&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;inputlookup&lt;/CODE&gt; is a generating command that adds all the records from the lookup file into the search.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/inputLookup"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/inputLookup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;lookup&lt;/CODE&gt; is a "join-type" command that uses data from the existing event as a key to look up additional data from the lookup table, and add it to the existing event if found.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Lookup"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338878#M93634</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-12-13T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inputlookup usage</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338879#M93635</link>
      <description>&lt;P&gt;@DEAD_BEEF - I like your style of stating your assumptions.  Great practice.  You are missing an open brace &lt;CODE&gt;[&lt;/CODE&gt;, please update.  &lt;/P&gt;

&lt;P&gt;You could also optionally adjust your code to assume the output from his current search, which could come in the top of your code as if the last command had been... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table user time search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... so you'd change your first line to (before the subsearch) have a where clause or a search clause on the prior results.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:42:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338879#M93635</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-12-13T16:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inputlookup usage</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338880#M93636</link>
      <description>&lt;P&gt;yes exact &lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 08:45:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputlookup-usage/m-p/338880#M93636</guid>
      <dc:creator>Mohsin123</dc:creator>
      <dc:date>2017-12-18T08:45:33Z</dc:date>
    </item>
  </channel>
</rss>

