<?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: | input lookup return ALL rather than specify number in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185487#M53463</link>
    <description>&lt;P&gt;try as: &lt;BR /&gt;
[|inputlookup lotsofusers.csv | return 3 $users]&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jan 2015 11:40:01 GMT</pubDate>
    <dc:creator>fdi01</dc:creator>
    <dc:date>2015-01-16T11:40:01Z</dc:date>
    <item>
      <title>| input lookup return ALL rather than specify number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185486#M53462</link>
      <description>&lt;P&gt;I'm trying to add this to my search but the number of lookup users may change!!&lt;/P&gt;

&lt;P&gt;(|inputlookup lotsofusers.csv | return 3 $users)&lt;/P&gt;

&lt;P&gt;((user1) OR (user2) OR (user3))&lt;/P&gt;

&lt;P&gt;Is there a better way to do this? * does not work.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 10:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185486#M53462</guid>
      <dc:creator>robf</dc:creator>
      <dc:date>2015-01-16T10:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: | input lookup return ALL rather than specify number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185487#M53463</link>
      <description>&lt;P&gt;try as: &lt;BR /&gt;
[|inputlookup lotsofusers.csv | return 3 $users]&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 11:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185487#M53463</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-01-16T11:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: | input lookup return ALL rather than specify number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185488#M53464</link>
      <description>&lt;P&gt;i dont think you understood the question... i don't want to specify how many users. it could be 3 , 300, 3333...&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185488#M53464</guid>
      <dc:creator>robf</dc:creator>
      <dc:date>2015-01-16T12:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: | input lookup return ALL rather than specify number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185489#M53465</link>
      <description>&lt;P&gt;If you're using it as a subsearch, you can use the &lt;CODE&gt;fields&lt;/CODE&gt; command to reduce what gets returned without needing &lt;CODE&gt;return&lt;/CODE&gt;. Try this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[|inputlookup lotsofusers.csv | fields users]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You should get all of them.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 14:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185489#M53465</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-01-16T14:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: | input lookup return ALL rather than specify number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185490#M53466</link>
      <description>&lt;P&gt;thanks but this gives&lt;/P&gt;

&lt;P&gt;((user=user1) OR (user=user2) OR (user=user3))&lt;/P&gt;

&lt;P&gt;i want to search keywords only &lt;/P&gt;

&lt;P&gt;((user1) OR (user2) OR (user3))&lt;/P&gt;

&lt;P&gt;with the return command you can use the $ symbol to achieve this&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185490#M53466</guid>
      <dc:creator>robf</dc:creator>
      <dc:date>2015-01-16T17:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: | input lookup return ALL rather than specify number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185491#M53467</link>
      <description>&lt;P&gt;How about this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[|inputlookup lotsofusers.csv | fields users | format | rex field=search mode=sed "s/user=//g"]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185491#M53467</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-01-16T17:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: | input lookup return ALL rather than specify number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185492#M53468</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search  [|inputlookup lotsofusers.csv | eval search=users | table search]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Jan 2015 19:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185492#M53468</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-01-16T19:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: | input lookup return ALL rather than specify number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185493#M53469</link>
      <description>&lt;P&gt;It would be nice to know the answer to this question. Why do we have to specify a hardcoded value of records to return when using inputlookup? The logical thing to do is check all records.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 23:36:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/input-lookup-return-ALL-rather-than-specify-number/m-p/185493#M53469</guid>
      <dc:creator>orion44</dc:creator>
      <dc:date>2019-06-12T23:36:59Z</dc:date>
    </item>
  </channel>
</rss>

