<?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 Is there a way to write a script to download the latest Splunk version? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-write-a-script-to-download-the-latest-Splunk/m-p/249419#M47997</link>
    <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;I see there is a "got wget" option on the download page for Splunk, which is great, but that hardcodes me to that version. I am hoping to get something similar that always gets me the latest RPM. Anyone have an idea how I would do this?&lt;/P&gt;</description>
    <pubDate>Sun, 15 May 2016 20:56:27 GMT</pubDate>
    <dc:creator>daniel333</dc:creator>
    <dc:date>2016-05-15T20:56:27Z</dc:date>
    <item>
      <title>Is there a way to write a script to download the latest Splunk version?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-write-a-script-to-download-the-latest-Splunk/m-p/249419#M47997</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;I see there is a "got wget" option on the download page for Splunk, which is great, but that hardcodes me to that version. I am hoping to get something similar that always gets me the latest RPM. Anyone have an idea how I would do this?&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2016 20:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-write-a-script-to-download-the-latest-Splunk/m-p/249419#M47997</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2016-05-15T20:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to write a script to download the latest Splunk version?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-write-a-script-to-download-the-latest-Splunk/m-p/249420#M47998</link>
      <description>&lt;P&gt;You'll need a scriptable browser such as phantomJS.  You could also use an IE com object if in windows.&lt;/P&gt;

&lt;P&gt;Problem is, as soon as you automate the process, splunk will make website changes and break your script &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have seen some people around here who have done it though.  It is possible.&lt;/P&gt;

&lt;P&gt;This seems to get the latest version of 6.4.0 without having to add the build number;&lt;BR /&gt;
&lt;CODE&gt;&lt;A href="https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&amp;amp;platform=linux&amp;amp;version=6.4.0&amp;amp;product=splunk&amp;amp;filename=&amp;amp;wget=true" target="test_blank"&gt;https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&amp;amp;platform=linux&amp;amp;version=6.4.0&amp;amp;product=splunk&amp;amp;filename=&amp;amp;wget=true&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 14:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-write-a-script-to-download-the-latest-Splunk/m-p/249420#M47998</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-16T14:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to write a script to download the latest Splunk version?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-write-a-script-to-download-the-latest-Splunk/m-p/249421#M47999</link>
      <description>&lt;P&gt;Had the EXACT same issue where I wanted to automate Splunk installs but didn't want to use expect scripts for variable inputs or have to hard code versions and keep the scripts updated - YUK!&lt;/P&gt;

&lt;P&gt;You'll want to customize this but to just download the latest version, see URL's below. NO IDEA how long they'll last or if they'll break though. I have case open with Splunk on this now and just found this by tinkering with the URI's - fairly straightforward.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Via PowerShell:&lt;/STRONG&gt;&lt;BR /&gt;
Invoke-WebRequest "&lt;A href="https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=**x86_64**&amp;amp;platform=**windows**&amp;amp;version=**latest**&amp;amp;product=**universalforwarder**&amp;amp;filename=&amp;amp;wget=true"&gt;https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=**x86_64**&amp;amp;platform=**windows**&amp;amp;version=**latest**&amp;amp;product=**universalforwarder**&amp;amp;filename=&amp;amp;wget=true&lt;/A&gt;" -OutFile splunk-latest-installer.msi&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Via wget:&lt;/STRONG&gt;&lt;BR /&gt;
wget -O splunk-latest-installer.rpm "&lt;A href="https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=**x86_64**&amp;amp;platform=**linux**&amp;amp;version=**latest**&amp;amp;product=**universalforwarder**&amp;amp;filename=&amp;amp;wget=true"&gt;https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=**x86_64**&amp;amp;platform=**linux**&amp;amp;version=**latest**&amp;amp;product=**universalforwarder**&amp;amp;filename=&amp;amp;wget=true&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 01:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-write-a-script-to-download-the-latest-Splunk/m-p/249421#M47999</guid>
      <dc:creator>davespatz</dc:creator>
      <dc:date>2017-05-05T01:34:35Z</dc:date>
    </item>
  </channel>
</rss>

