<?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 write a search to append multiple lookups? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198122#M57263</link>
    <description>&lt;P&gt;What are the columns available in lookup tables?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2014 21:10:01 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-08-28T21:10:01Z</dc:date>
    <item>
      <title>How to write a search to append multiple lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198121#M57262</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to write a search that appends multiple lookups.  I have 4 lookups in a .CSV format that table a list of customers by channel (4 different channels) that have been migrated from one system to another.  I want to create a search that uses all lookups to verify customers that have been migrated are logging in Splunk.  If they are not logging, there is some issue that needs to be looked at.&lt;/P&gt;

&lt;P&gt;Here is a basic search I am using with one of the lookups:&lt;/P&gt;

&lt;P&gt;index=contract_gateway earliest=@d sourcetype=esb_audit bp_bp_name=Invoice&lt;BR /&gt;
| stats earliest(_time) as first_seen, latest(_time) as last_seen by customer| append [ |inputlookup edi_migrated_customer_lookup.csv ] &lt;BR /&gt;
| stats min(first_seen) as first_seen, max(last_seen) as last_seen by customer&lt;BR /&gt;
| outputlookup edi_migrated_customer_lookup.csv&lt;/P&gt;

&lt;P&gt;The issue I am having is that no matter which of the four lookups I use, the number events in Splunk remains the same, concluding that my search must be jacked/ I am not using the inputlookup/outputlook commands correctly.&lt;/P&gt;

&lt;P&gt;What I eventually would like to do is display a summary page that monitors the customer migration, and table Total Customer Count, Success Rate, Error Rate, No Transaction Rate by each channel.&lt;/P&gt;

&lt;P&gt;Any insights on my query would be very helpful.&lt;/P&gt;

&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:26:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198121#M57262</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2020-09-28T17:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to append multiple lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198122#M57263</link>
      <description>&lt;P&gt;What are the columns available in lookup tables?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2014 21:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198122#M57263</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-28T21:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to append multiple lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198123#M57264</link>
      <description>&lt;P&gt;Only "customer" at the moment.  Each lookup, like edi_migrated_customer_lookup.csv, contains a list of customers that have been migrated.  So every week I will beupdating the lookups as customers are migrated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198123#M57264</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2020-09-28T17:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to append multiple lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198124#M57265</link>
      <description>&lt;P&gt;Give this a try. I&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=contract_gateway earliest=@d sourcetype=esb_audit bp_bp_name=Invoice | stats earliest(_time) as first_seen, latest(_time) as last_seen by customer| append [ |inputlookup edi_migrated_customer_lookup.csv ] | dedup customer first_seen last_seen| outputlookup edi_migrated_customer_lookup.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Aug 2014 12:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198124#M57265</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-29T12:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to append multiple lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198125#M57266</link>
      <description>&lt;P&gt;Thanks for your response.  The results are similar where no matter which migrated list I change to the number of events are still the same for all lookups.  The lookups range from 300 customers in one, to almost 20,000 in another, so I suspect the number of events to change by each lookup&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2014 12:54:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-append-multiple-lookups/m-p/198125#M57266</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2014-08-29T12:54:40Z</dc:date>
    </item>
  </channel>
</rss>

