<?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: Search in the earliest source in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Search-in-the-earliest-source/m-p/100698#M21099</link>
    <description>&lt;P&gt;Thank you!&lt;BR /&gt;
And as the search will proceed to the next source?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2013 14:35:57 GMT</pubDate>
    <dc:creator>ryastrebov</dc:creator>
    <dc:date>2013-04-19T14:35:57Z</dc:date>
    <item>
      <title>Search in the earliest source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-in-the-earliest-source/m-p/100696#M21097</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;
I have sourtsetype that contains multiple source. Into sourcetype permanently add new source. I need to search in the earliest source. For extract most earliest source I use this search request:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="MySourceType" source=* NOT [ | inputlookup usedfiles.csv|fields source]| stats dc(source) by source | sort 1 by source | fields - dc(source) | outputlookup append=true usedfiles.csv&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This search successfully return of earliest source name. How I can make search into this source? This search request is not working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="MySourceType" source=* NOT [ | inputlookup usedfiles.csv|fields source]| stats dc(source) by source | sort 1 by source | fields - dc(source) | outputlookup append=true usedfiles.csv | search Field="value"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Apr 2013 09:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-in-the-earliest-source/m-p/100696#M21097</guid>
      <dc:creator>ryastrebov</dc:creator>
      <dc:date>2013-04-19T09:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search in the earliest source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-in-the-earliest-source/m-p/100697#M21098</link>
      <description>&lt;P&gt;I would think you could just use the "earliest" function of stats - i.e.&lt;/P&gt;

&lt;P&gt;sourcetype="mysourcetype" | stats earliest(source) as firstsource | search source=firstsource&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 14:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-in-the-earliest-source/m-p/100697#M21098</guid>
      <dc:creator>jstockamp</dc:creator>
      <dc:date>2013-04-19T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search in the earliest source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-in-the-earliest-source/m-p/100698#M21099</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;
And as the search will proceed to the next source?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 14:35:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-in-the-earliest-source/m-p/100698#M21099</guid>
      <dc:creator>ryastrebov</dc:creator>
      <dc:date>2013-04-19T14:35:57Z</dc:date>
    </item>
  </channel>
</rss>

