<?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 search one lookup field and display another lookup field's information if a matching event occurs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445846#M126484</link>
    <description>&lt;P&gt;Wow that's interesting and something I didn't know either. Thanks for sharing.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 19:24:25 GMT</pubDate>
    <dc:creator>chrisyounger</dc:creator>
    <dc:date>2019-02-18T19:24:25Z</dc:date>
    <item>
      <title>How do you search one lookup field and display another lookup field's information if a matching event occurs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445841#M126479</link>
      <description>&lt;P&gt;For example, I have lookup xyz.csv with two fields, A and B. &lt;/P&gt;

&lt;P&gt;I want to search for the value of A field. If any match occurs, then the value of the A and B field should be displayed with other information, which is available in raw logs.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:41:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445841#M126479</guid>
      <dc:creator>N92</dc:creator>
      <dc:date>2019-02-05T16:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search one lookup field and display another lookup field's information if a matching event occurs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445842#M126480</link>
      <description>&lt;P&gt;My search is sub search. &lt;BR /&gt;
For ex.&lt;BR /&gt;
index=* [|inputlookup xyz.csv | fields A B | rename A as search| format ] | stats count by _raw A B &lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445842#M126480</guid>
      <dc:creator>N92</dc:creator>
      <dc:date>2019-02-05T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search one lookup field and display another lookup field's information if a matching event occurs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445843#M126481</link>
      <description>&lt;P&gt;Yes it is possible to have lookups that use the field values from other lookups. Lookups run in sequence from their lexogrphical order. For example, the following will work:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
LOOKUP-a = lookup-a host OUTPUTNEW fielda fieldb
LOOKUP-b = lookup-b fielda OUTPUTNEW fieldc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 18:19:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445843#M126481</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-05T18:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search one lookup field and display another lookup field's information if a matching event occurs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445844#M126482</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YouShouldAlwaysSepcifyAnIndex AND sourcetype=AndSourcetypeToo AND [|inputlookup xyz.csv | table A]
| lookup xyz.csv A OUTPUT B
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Feb 2019 20:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445844#M126482</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-05T20:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search one lookup field and display another lookup field's information if a matching event occurs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445845#M126483</link>
      <description>&lt;P&gt;As this is still a top result for this issue, I'd like to add:&lt;BR /&gt;
In general, it works.&lt;BR /&gt;
But - if a lookup is larger than the &lt;CODE&gt;max_memtable_size&lt;/CODE&gt; in limits.conf (default: 10 MB), it will be indexed to disk. This seems to result in it being applied later - so if the lookup &lt;CODE&gt;a&lt;/CODE&gt; in the above example is too big, this won't work anymore.&lt;BR /&gt;
Raising the limit will fix the issue.&lt;BR /&gt;
Thanks a ton to @starcher for pointing this out to me!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 14:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445845#M126483</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2019-02-18T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search one lookup field and display another lookup field's information if a matching event occurs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445846#M126484</link>
      <description>&lt;P&gt;Wow that's interesting and something I didn't know either. Thanks for sharing.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 19:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445846#M126484</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-18T19:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search one lookup field and display another lookup field's information if a matching event occurs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445847#M126485</link>
      <description>&lt;P&gt;the auto lookup feature requires it to be in ram. So if over max_memtable_size it isn't. Normal lookup command in SPL will work. just not "autolookup" in props.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:18:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445847#M126485</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2020-09-29T23:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search one lookup field and display another lookup field's information if a matching event occurs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445848#M126486</link>
      <description>&lt;P&gt;So far I can not exactly confirm this. My "not in RAM" auto lookup works, but it seems to be applied AFTER the "in RAM" lookups. In my case, the latter depends on a field from the former, and therefore it fails. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 17:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-one-lookup-field-and-display-another-lookup/m-p/445848#M126486</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2019-02-19T17:39:09Z</dc:date>
    </item>
  </channel>
</rss>

