<?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 to add lookups that don't have matching fields on the log entries in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-lookups-that-don-t-have-matching-fields-on-the-log/m-p/52389#M12724</link>
    <description>&lt;P&gt;Thanks! This worked.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2013 20:46:34 GMT</pubDate>
    <dc:creator>sa_splunk</dc:creator>
    <dc:date>2013-03-06T20:46:34Z</dc:date>
    <item>
      <title>How to add lookups that don't have matching fields on the log entries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-lookups-that-don-t-have-matching-fields-on-the-log/m-p/52387#M12722</link>
      <description>&lt;P&gt;Let's say I have log entries as follows:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;sourcetype-syslog: time, event_id, host&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I want to be able to incorporate two tables that have the following data:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;CITY_TABLE: host, city&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;STATE_TABLE: city, state&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;How would I be able to add CITY_TABLE and STATE_TABLE to splunk in order to obtain search results that will provide: time, event_id, host, city, state?&lt;/P&gt;

&lt;P&gt;The problem I am having is I don't know how to get the STATE_TABLE into Splunk and to include it in my search. For example, when adding STATE_TABLE as a lookup, it asks what I field in STATE_TABLE maps to in the logs (ie we have the choice of using host, sourcetype, etc), but STATE_TABLE doesn't have those fields.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-lookups-that-don-t-have-matching-fields-on-the-log/m-p/52387#M12722</guid>
      <dc:creator>sa_splunk</dc:creator>
      <dc:date>2020-09-28T13:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add lookups that don't have matching fields on the log entries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-lookups-that-don-t-have-matching-fields-on-the-log/m-p/52388#M12723</link>
      <description>&lt;P&gt;Can't you just chain your lookups?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup CITY_TABLE host OUTPUT city | lookup STATE_TABLE city OUTPUT state
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Mar 2013 08:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-lookups-that-don-t-have-matching-fields-on-the-log/m-p/52388#M12723</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-03-06T08:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add lookups that don't have matching fields on the log entries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-lookups-that-don-t-have-matching-fields-on-the-log/m-p/52389#M12724</link>
      <description>&lt;P&gt;Thanks! This worked.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 20:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-lookups-that-don-t-have-matching-fields-on-the-log/m-p/52389#M12724</guid>
      <dc:creator>sa_splunk</dc:creator>
      <dc:date>2013-03-06T20:46:34Z</dc:date>
    </item>
  </channel>
</rss>

