<?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: How to obtain the Splunk instance's version from app (SimpleXML or SplunkJS) in 6.4 or older? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365956#M66599</link>
    <description>&lt;P&gt;have a look at the server/info REST endpoint: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/RESTREF/RESTintrospect#GET_server.2Finfo_method_detail"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/RESTREF/RESTintrospect#GET_server.2Finfo_method_detail&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;it will return a version property which is what you are looking for&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2017 11:23:38 GMT</pubDate>
    <dc:creator>lweber</dc:creator>
    <dc:date>2017-03-17T11:23:38Z</dc:date>
    <item>
      <title>How to obtain the Splunk instance's version from app (SimpleXML or SplunkJS) in 6.4 or older?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365954#M66597</link>
      <description>&lt;P&gt;Splunk 6.5 added global environment tokens that are accessible in SimpleXML (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/tokens#Use_global_tokens_to_access_environment_information"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/tokens#Use_global_tokens_to_access_environment_information&lt;/A&gt;), one of which reports the version of the Splunk instance, &lt;CODE&gt;$env:version$&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;How does one obtain the equivalent version number from an app in Splunk 6.4 or older? &lt;/P&gt;

&lt;P&gt;I am most interested in obtaining this value using SplunkJS or SimpleXML, e.g., a function call in SplunkJS or a &lt;CODE&gt;rest&lt;/CODE&gt; search. &lt;/P&gt;

&lt;P&gt;I am aware some of the global environment tokens are accessible via the REST API, but I cannot seem to find anything that reports the version. A SplunkJS function call would be the most ideal.&lt;/P&gt;

&lt;P&gt;Here is a related question for the splunk_server value: &lt;A href="https://answers.splunk.com/answers/506296/is-there-a-javascript-token-with-the-hostname-of-t.html"&gt;https://answers.splunk.com/answers/506296/is-there-a-javascript-token-with-the-hostname-of-t.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 10:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365954#M66597</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-03-17T10:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain the Splunk instance's version from app (SimpleXML or SplunkJS) in 6.4 or older?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365955#M66598</link>
      <description>&lt;P&gt;is this what you were after??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/apps/local | table title version
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Mar 2017 11:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365955#M66598</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2017-03-17T11:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain the Splunk instance's version from app (SimpleXML or SplunkJS) in 6.4 or older?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365956#M66599</link>
      <description>&lt;P&gt;have a look at the server/info REST endpoint: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/RESTREF/RESTintrospect#GET_server.2Finfo_method_detail"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/RESTREF/RESTintrospect#GET_server.2Finfo_method_detail&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;it will return a version property which is what you are looking for&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 11:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365956#M66599</guid>
      <dc:creator>lweber</dc:creator>
      <dc:date>2017-03-17T11:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain the Splunk instance's version from app (SimpleXML or SplunkJS) in 6.4 or older?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365957#M66600</link>
      <description>&lt;P&gt;Thank you. Don't know how I missed that.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 11:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365957#M66600</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-03-17T11:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain the Splunk instance's version from app (SimpleXML or SplunkJS) in 6.4 or older?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365958#M66601</link>
      <description>&lt;P&gt;For those curious, this is the actual query that is probably the simplest. It assumes your user can be authenticated to call the REST endpoint.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rest splunk_server=local count=1 /services/server/info | table version&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 11:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-obtain-the-Splunk-instance-s-version-from-app-SimpleXML/m-p/365958#M66601</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-03-17T11:41:55Z</dc:date>
    </item>
  </channel>
</rss>

