<?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: when the machine was build or when the machine started communicating to Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/when-the-machine-was-build-or-when-the-machine-started/m-p/502173#M140115</link>
    <description>&lt;P&gt;Hi @brpsingara&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=_internal 
| rename totalCount as Count firstTime as "First Event" lastTime as "Last Event" recentTime as "Last Update" 
| fieldformat Count=tostring(Count, "commas") 
| fieldformat "First Event"=strftime('First Event', "%c") 
| fieldformat "Last Event"=strftime('Last Event', "%c") 
| fieldformat "Last Update"=strftime('Last Update', "%c")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This sample search is basically just taken on the official docs Search Reference.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Metadata"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Metadata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 14:37:34 GMT</pubDate>
    <dc:creator>lloydknight</dc:creator>
    <dc:date>2020-05-22T14:37:34Z</dc:date>
    <item>
      <title>when the machine was build or when the machine started communicating to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/when-the-machine-was-build-or-when-the-machine-started/m-p/502172#M140114</link>
      <description>&lt;P&gt;I got regular question from auditors. &lt;BR /&gt;we have 100 machines,&lt;BR /&gt;Machine1&lt;BR /&gt;Machine2&lt;BR /&gt;..&lt;BR /&gt;..&lt;BR /&gt;Machine100&lt;/P&gt;
&lt;P&gt;and auditor asked to run/search one year old data for the 'machine34'. &lt;BR /&gt;I did search by using &lt;CODE&gt;* host=machine34&lt;/CODE&gt; and manually i selected 2019 March&lt;BR /&gt;If data is there i am fine, but unfortunately data is not showing. Because the machine34 was build 2 months back. It took 2 hours to find the solutions for this. So...,&lt;/P&gt;
&lt;P&gt;My question is possible to see build date or 1st contact date of machine by using splunk.&lt;/P&gt;
&lt;P&gt;I am using below code to view the all machines&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=* | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am looking for another field, that is build date or contacting to splunk date.&lt;/P&gt;
&lt;P&gt;Will it be possible ?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 22:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/when-the-machine-was-build-or-when-the-machine-started/m-p/502172#M140114</guid>
      <dc:creator>brpsingara</dc:creator>
      <dc:date>2020-06-05T22:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: when the machine was build or when the machine started communicating to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/when-the-machine-was-build-or-when-the-machine-started/m-p/502173#M140115</link>
      <description>&lt;P&gt;Hi @brpsingara&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=_internal 
| rename totalCount as Count firstTime as "First Event" lastTime as "Last Event" recentTime as "Last Update" 
| fieldformat Count=tostring(Count, "commas") 
| fieldformat "First Event"=strftime('First Event', "%c") 
| fieldformat "Last Event"=strftime('Last Event', "%c") 
| fieldformat "Last Update"=strftime('Last Update', "%c")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This sample search is basically just taken on the official docs Search Reference.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Metadata"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Metadata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 14:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/when-the-machine-was-build-or-when-the-machine-started/m-p/502173#M140115</guid>
      <dc:creator>lloydknight</dc:creator>
      <dc:date>2020-05-22T14:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: when the machine was build or when the machine started communicating to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/when-the-machine-was-build-or-when-the-machine-started/m-p/502174#M140116</link>
      <description>&lt;P&gt;Thanks  lloydknight&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 15:44:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/when-the-machine-was-build-or-when-the-machine-started/m-p/502174#M140116</guid>
      <dc:creator>brpsingara</dc:creator>
      <dc:date>2020-05-22T15:44:24Z</dc:date>
    </item>
  </channel>
</rss>

