<?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 do I start Splunk on a non-default port, non-interactively? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-start-Splunk-on-a-non-default-port-non-interactively/m-p/197889#M12373</link>
    <description>&lt;P&gt;I looked everywhere and couldn't find this, so please upvote if this helped:&lt;/P&gt;

&lt;P&gt;If you want to set Splunk to start up with a non-default port, non-interactively, before starting up for first time:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Copy the default web.conf from $SPLUNKHOME/etc/system/default/web.conf to $SPLUNK_HOME/etc/system/local/web.conf. (it will not exist in /local until created)&lt;/P&gt;

&lt;P&gt;$ cp $SPLUNKHOME/etc/system/default/web.conf $SPLUNKHOME/etc/system/local/web.conf&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;More on file precedence &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/admin/Wheretofindtheconfigurationfiles"&gt;here:&lt;/A&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Remove lines unchanged. Just use the example below if you have no other changes.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;To change the splunk web server port from the default value of 8000 to 12300, and the default splunk management port from 8089 to 12389, see example below. &lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
  [settings]&lt;BR /&gt;
  httpport = 12300&lt;BR /&gt;
  mgmtHostPort = 127.0.0.1:12389&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Save the file. Start splunk.&lt;/P&gt;

&lt;P&gt;$ SPLUNK_HOME/bin/splunk start&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Voila! It should confirm ports opened during the start up process:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; Checking prerequisites...
&amp;gt; Checking http port [12300]: open
&amp;gt; Checking mgmt port [12389]: open
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Jan 2014 00:39:50 GMT</pubDate>
    <dc:creator>weeb</dc:creator>
    <dc:date>2014-01-08T00:39:50Z</dc:date>
    <item>
      <title>How do I start Splunk on a non-default port, non-interactively?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-start-Splunk-on-a-non-default-port-non-interactively/m-p/197888#M12372</link>
      <description>&lt;P&gt;I need to change the default web server port and the default web server port from default values.&lt;/P&gt;

&lt;P&gt;I know there are ways to change the ports once it has started up on the default ports, but I would like to change my configuration non-interactively, i.e. in a way that can be scripted or automated.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2014 00:29:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-start-Splunk-on-a-non-default-port-non-interactively/m-p/197888#M12372</guid>
      <dc:creator>weeb</dc:creator>
      <dc:date>2014-01-08T00:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I start Splunk on a non-default port, non-interactively?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-start-Splunk-on-a-non-default-port-non-interactively/m-p/197889#M12373</link>
      <description>&lt;P&gt;I looked everywhere and couldn't find this, so please upvote if this helped:&lt;/P&gt;

&lt;P&gt;If you want to set Splunk to start up with a non-default port, non-interactively, before starting up for first time:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Copy the default web.conf from $SPLUNKHOME/etc/system/default/web.conf to $SPLUNK_HOME/etc/system/local/web.conf. (it will not exist in /local until created)&lt;/P&gt;

&lt;P&gt;$ cp $SPLUNKHOME/etc/system/default/web.conf $SPLUNKHOME/etc/system/local/web.conf&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;More on file precedence &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/admin/Wheretofindtheconfigurationfiles"&gt;here:&lt;/A&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Remove lines unchanged. Just use the example below if you have no other changes.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;To change the splunk web server port from the default value of 8000 to 12300, and the default splunk management port from 8089 to 12389, see example below. &lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
  [settings]&lt;BR /&gt;
  httpport = 12300&lt;BR /&gt;
  mgmtHostPort = 127.0.0.1:12389&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Save the file. Start splunk.&lt;/P&gt;

&lt;P&gt;$ SPLUNK_HOME/bin/splunk start&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Voila! It should confirm ports opened during the start up process:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; Checking prerequisites...
&amp;gt; Checking http port [12300]: open
&amp;gt; Checking mgmt port [12389]: open
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jan 2014 00:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-start-Splunk-on-a-non-default-port-non-interactively/m-p/197889#M12373</guid>
      <dc:creator>weeb</dc:creator>
      <dc:date>2014-01-08T00:39:50Z</dc:date>
    </item>
  </channel>
</rss>

