<?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 How do I return the time of the first event from a specific host in the main index? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-the-time-of-the-first-event-from-a-specific-host/m-p/67167#M16784</link>
    <description>&lt;P&gt;Need to determine the date and time of when a specific host first logged to Splunk ...&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2010 23:41:25 GMT</pubDate>
    <dc:creator>MikeyG</dc:creator>
    <dc:date>2010-10-08T23:41:25Z</dc:date>
    <item>
      <title>How do I return the time of the first event from a specific host in the main index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-the-time-of-the-first-event-from-a-specific-host/m-p/67167#M16784</link>
      <description>&lt;P&gt;Need to determine the date and time of when a specific host first logged to Splunk ...&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 23:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-the-time-of-the-first-event-from-a-specific-host/m-p/67167#M16784</guid>
      <dc:creator>MikeyG</dc:creator>
      <dc:date>2010-10-08T23:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return the time of the first event from a specific host in the main index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-the-time-of-the-first-event-from-a-specific-host/m-p/67168#M16785</link>
      <description>&lt;P&gt;If you're looking for the date/time of the event (ie. what the value Splunk has extracted from the Event), use this search:&lt;/P&gt;

&lt;P&gt;single host:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=main | search host=&amp;lt;YOUR HOST&amp;gt; | convert ctime(firstTime) | table host firstTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;all hosts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=main | convert ctime(firstTime) | table host firstTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you're looking for when the first event has been indexed use this search:
(Select All time in the time range picker - may take a while)&lt;/P&gt;

&lt;P&gt;single host:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main host=&amp;lt;YOUR HOST&amp;gt; | stats min(_indextime) as mintime by host | convert ctime(mintime) | table host mintime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;all hosts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main | stats min(_indextime) as mintime by host | convert ctime(mintime) | table host mintime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Oct 2010 23:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-the-time-of-the-first-event-from-a-specific-host/m-p/67168#M16785</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-10-08T23:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return the time of the first event from a specific host in the main index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-the-time-of-the-first-event-from-a-specific-host/m-p/67169#M16786</link>
      <description>&lt;P&gt;That time/date would be outside the data that's currently in the main index ...&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2010 00:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-the-time-of-the-first-event-from-a-specific-host/m-p/67169#M16786</guid>
      <dc:creator>MikeyG</dc:creator>
      <dc:date>2010-10-09T00:10:25Z</dc:date>
    </item>
  </channel>
</rss>

