<?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 programmatically determine if my app is running on Splunk Cloud? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-do-I-programmatically-determine-if-my-app-is-running-on/m-p/312077#M4256</link>
    <description>&lt;P&gt;I have an app that needs to determine if it is running on Splunk Cloud. How do I determine if my Splunk install is running on Splunk Cloud versus on-prem?&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 20:42:07 GMT</pubDate>
    <dc:creator>LukeMurphey</dc:creator>
    <dc:date>2017-05-25T20:42:07Z</dc:date>
    <item>
      <title>How do I programmatically determine if my app is running on Splunk Cloud?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-I-programmatically-determine-if-my-app-is-running-on/m-p/312077#M4256</link>
      <description>&lt;P&gt;I have an app that needs to determine if it is running on Splunk Cloud. How do I determine if my Splunk install is running on Splunk Cloud versus on-prem?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 20:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-I-programmatically-determine-if-my-app-is-running-on/m-p/312077#M4256</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2017-05-25T20:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programmatically determine if my app is running on Splunk Cloud?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-I-programmatically-determine-if-my-app-is-running-on/m-p/312078#M4257</link>
      <description>&lt;P&gt;You can determine if the Splunk install is Splunk cloud by looking at the /services/server/info/server-info (e.g. &lt;A href="https://127.0.0.1:8089/services/server/info/server-info"&gt;https://127.0.0.1:8089/services/server/info/server-info&lt;/A&gt;) endpoint. If the install is running on Splunk Cloud, it will have a field named "instance_type" that has a value of "cloud".&lt;/P&gt;

&lt;P&gt;You can make your Splunk Enterprise instance include this value by making a file in your Splunk install under $SPLUNK_HOME/etc/system/local/server.conf that sets the instance type to cloud, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[general]
instanceType = cloud
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is useful when you want to test your app on Splunk Enterprise but have it emulate that way it would behave on Cloud (presuming that your app is designed to act differently on Cloud).&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 20:43:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-I-programmatically-determine-if-my-app-is-running-on/m-p/312078#M4257</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2017-05-25T20:43:29Z</dc:date>
    </item>
  </channel>
</rss>

