<?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: Splunk server uptime - missing Splunk server details in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503499#M85776</link>
    <description>&lt;P&gt;cheers for the info richgalloway&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 14:06:22 GMT</pubDate>
    <dc:creator>pbrinkman</dc:creator>
    <dc:date>2019-11-12T14:06:22Z</dc:date>
    <item>
      <title>Splunk server uptime - missing Splunk server details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503496#M85773</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am running the below query, I get responses from some of my Splunk servers but not all ?&lt;/P&gt;

&lt;P&gt;| rest /services/server/info | eval LastStartupTime=strftime(startup_time, "%Y/%m/%d  %H:%M:%S")&lt;BR /&gt;
 | eval timenow=now()&lt;BR /&gt;
 | eval daysup = round((timenow - startup_time) / 86400,0)&lt;BR /&gt;
 | eval Uptime = tostring(daysup) + " Days"&lt;BR /&gt;
 | table splunk_server LastStartupTime Uptime&lt;/P&gt;

&lt;P&gt;Is there anything I am missing on the servers that are not reporting back ?&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
Paul&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:36:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503496#M85773</guid>
      <dc:creator>pbrinkman</dc:creator>
      <dc:date>2020-09-30T02:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk server uptime - missing Splunk server details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503497#M85774</link>
      <description>&lt;P&gt;The &lt;CODE&gt;rest&lt;/CODE&gt; command is only sent to indexers so only those servers will respond.  You will not get any data about search heads and other non-indexer instances.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 12:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503497#M85774</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-14T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk server uptime - missing Splunk server details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503498#M85775</link>
      <description>&lt;P&gt;Please, check this splunk answers, maybe it fits your purposes:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/105128/how-to-determine-how-long-splunk-has-been-up.html"&gt;https://answers.splunk.com/answers/105128/how-to-determine-how-long-splunk-has-been-up.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 22:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503498#M85775</guid>
      <dc:creator>ivanreis</dc:creator>
      <dc:date>2019-10-14T22:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk server uptime - missing Splunk server details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503499#M85776</link>
      <description>&lt;P&gt;cheers for the info richgalloway&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 14:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/503499#M85776</guid>
      <dc:creator>pbrinkman</dc:creator>
      <dc:date>2019-11-12T14:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk server uptime - missing Splunk server details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/531567#M89416</link>
      <description>&lt;P&gt;I found this to work from our DMC for all instances.&amp;nbsp; I can see retrieve info for all instances that are search peers of the DMC.&amp;nbsp; Without "splunk_server=*" then I only see the indexers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| rest splunk_server=* /services/server/info&lt;/P&gt;&lt;P&gt;| table host, startup_time&lt;/P&gt;&lt;P&gt;| eval uptime=tostring(now() - startup_time, "duration")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 17:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/531567#M89416</guid>
      <dc:creator>coreyCLI</dc:creator>
      <dc:date>2020-12-01T17:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk server uptime - missing Splunk server details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/579119#M102247</link>
      <description>&lt;P&gt;Thank you, Can confirm that this works as expected. I was also looking for a way to see all of the splunk instances:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run from the DMC:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=* /services/server/info | eval LastStartupTime=strftime(startup_time, "%Y/%m/%d %H:%M:%S")
| eval timenow=now()
| eval daysup = round((timenow - startup_time) / 86400,0)
| eval Uptime = tostring(daysup) + " Days"
| table splunk_server LastStartupTime Uptime&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 16:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/579119#M102247</guid>
      <dc:creator>amatodersp</dc:creator>
      <dc:date>2021-12-22T16:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk server uptime - missing Splunk server details</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/579139#M102250</link>
      <description>Shortly, you could run rest towards all defined search peers. This is the reason why it works on MC. Basically you could add additional peers (like HFs, currently as indexers) and then get that information from them.</description>
      <pubDate>Wed, 22 Dec 2021 19:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-server-uptime-missing-Splunk-server-details/m-p/579139#M102250</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-22T19:54:30Z</dc:date>
    </item>
  </channel>
</rss>

