<?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 reference lookup name in table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/reference-lookup-name-in-table/m-p/745575#M241491</link>
    <description>&lt;P&gt;I have a search where I am doing 2 inputlookups for 2 different lookups and appending them. Then I search them. Can I table the lookup name as a field for where the result was found? Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2025 16:34:07 GMT</pubDate>
    <dc:creator>jat75</dc:creator>
    <dc:date>2025-05-06T16:34:07Z</dc:date>
    <item>
      <title>reference lookup name in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/reference-lookup-name-in-table/m-p/745575#M241491</link>
      <description>&lt;P&gt;I have a search where I am doing 2 inputlookups for 2 different lookups and appending them. Then I search them. Can I table the lookup name as a field for where the result was found? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 16:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/reference-lookup-name-in-table/m-p/745575#M241491</guid>
      <dc:creator>jat75</dc:creator>
      <dc:date>2025-05-06T16:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: reference lookup name in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/reference-lookup-name-in-table/m-p/745578#M241493</link>
      <description>&lt;P&gt;From a nice bloke on reddit:&lt;/P&gt;&lt;P&gt;Example if you are using lookups normally:&lt;/P&gt;&lt;PRE&gt;| lookup my_lookup1.csv field1 OUTPUT outfield1
| lookup my_lookup2.csv field1 OUTPUT outfield2
| eval outfield = coalesce(outfield1,outfield2,"not found")
| eval tablesource = case(isnotnull(outfield1),"my_lookup1.csv",
 isnotnull(outfield2),"my_lookup2.csv",
 true(),"not found")&lt;/PRE&gt;&lt;P&gt;Example if you are using inputlookup:&lt;/P&gt;&lt;PRE&gt; | inputlookup my_lookup1.csv 
 | eval tablesource="my_lookup1.csv"
 | inputlookup my_lookup2.csv append=true
 | eval tablesource=coalesce(tablesource,"my_lookup2.csv")&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 May 2025 16:59:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/reference-lookup-name-in-table/m-p/745578#M241493</guid>
      <dc:creator>jat75</dc:creator>
      <dc:date>2025-05-06T16:59:47Z</dc:date>
    </item>
  </channel>
</rss>

