<?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: Looking for a REST status OK for load balancer healthcheck in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135116#M5074</link>
    <description>&lt;P&gt;I facing the same situation. &lt;BR /&gt;
What end point you end up using for health check?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2016 16:31:35 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2016-08-17T16:31:35Z</dc:date>
    <item>
      <title>Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135113#M5071</link>
      <description>&lt;P&gt;I'm looking for a basic heartbeat or healthcheck for search head status, in order to put behind a load balancer.&lt;BR /&gt;
This should not require authentication.&lt;BR /&gt;
The closest thing I've found is in the REST API /services/server/info , but that provides way more information than is needed.&lt;BR /&gt;
Isn't there a simple call that will return "OK" ?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 19:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135113#M5071</guid>
      <dc:creator>davebo1896</dc:creator>
      <dc:date>2015-06-03T19:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135114#M5072</link>
      <description>&lt;P&gt;Hi davebo1896,&lt;/P&gt;

&lt;P&gt;you can add a bit of SPL to this REST call, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| REST /services/server/info | stats count AS myCount | eval Status=if(myCount=="1", "OK" , "PANIK")| table Status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to get what you want or you just check the TCP port of the search head from load balancer. Because if the Web server from Splunk is down your search head is not usable by any user.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 21:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135114#M5072</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-03T21:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135115#M5073</link>
      <description>&lt;P&gt;We were hoping for something a bit more sophisticated than checking the TCP port.  We want to know that the service is capable of returning something sensible, albeit simple.&lt;BR /&gt;
For now we're looking at using /debug/echo?ping=OK and parsing for the OK, but that is less than optimal.&lt;BR /&gt;
We may put an nginx server in front of Splunk Web to return a simple OK (or not), but that adds an extra layer that could cause false readings (both positive and negative).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135115#M5073</guid>
      <dc:creator>davebo1896</dc:creator>
      <dc:date>2015-06-04T13:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135116#M5074</link>
      <description>&lt;P&gt;I facing the same situation. &lt;BR /&gt;
What end point you end up using for health check?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 16:31:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135116#M5074</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2016-08-17T16:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135117#M5075</link>
      <description>&lt;P&gt;@lpolo, look at the comment by davebo1896 you can use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; http[s]://YourSplunkServerName:YourSplunksPortHere/en-GB/debug/echo?ping=OK
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and parse the output for the &lt;CODE&gt;ping  OK&lt;/CODE&gt; response.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 22:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135117#M5075</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-08-17T22:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135118#M5076</link>
      <description>&lt;P&gt;It does not work in 6.4.1. The response is:&lt;BR /&gt;
Unauthorized to access this resource.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 14:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135118#M5076</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2016-08-18T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135119#M5077</link>
      <description>&lt;P&gt;The approach I took is this one:&lt;/P&gt;

&lt;P&gt;nc -zv splunkServer 514&lt;BR /&gt;
found 0 associations&lt;BR /&gt;
found 1 connections:&lt;BR /&gt;
     1: flags=82&lt;CONNECTED&gt;&lt;BR /&gt;
    outif en3&lt;BR /&gt;
    src x.x.x.x port 56747&lt;BR /&gt;
    dst x.x.x.x port 514&lt;BR /&gt;
    rank info not available&lt;BR /&gt;
    TCP aux info available&lt;BR /&gt;
Connection to 172.24.236.98 port 514 [tcp/shell] succeeded!&lt;/CONNECTED&gt;&lt;/P&gt;

&lt;P&gt;You also could do:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://yourSplunkIndexer:8089/services/server/info/server-info"&gt;https://yourSplunkIndexer:8089/services/server/info/server-info&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135119#M5077</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2016-08-18T16:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135120#M5078</link>
      <description>&lt;P&gt;Sure it does &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; You need to enable the &lt;CODE&gt;debug&lt;/CODE&gt; endpoints first - they were turned off for security reasons. To enable them change the &lt;CODE&gt;web.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;enableWebDebug = true|false
* Controls the visibility of the debug endpoints (i.e., /debug/**splat).
* Defaults to false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Aug 2016 20:20:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135120#M5078</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-08-18T20:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a REST status OK for load balancer healthcheck</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135121#M5079</link>
      <description>&lt;P&gt;Greetings from the future,&lt;/P&gt;

&lt;P&gt;there is an app &lt;A href="https://splunkbase.splunk.com/app/4395/"&gt;https://splunkbase.splunk.com/app/4395/&lt;/A&gt; now that provides a REST API endpoint that the load balancer can check without authentication and without the need to enable the debug endpoints in &lt;CODE&gt;web.conf&lt;/CODE&gt;.&lt;BR /&gt;
It provides also an option to take the Splunk instance out of the load balancer group (the load balancer must support such a thing).&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 02:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Looking-for-a-REST-status-OK-for-load-balancer-healthcheck/m-p/135121#M5079</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-03-01T02:03:39Z</dc:date>
    </item>
  </channel>
</rss>

