<?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: splunk ports in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-ports/m-p/80359#M7275</link>
    <description>&lt;P&gt;Splunk can use a number of ports, for a variety of purposes. There are defaults, but you can configure the ports however you require.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;splunkd port - AKA management port&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
This port is used for communication between splunkd and SplunkWeb (the GUI). It is also used for the REST endpoints. This port is &lt;STRONG&gt;not used for any forwarding or indexing&lt;/STRONG&gt;. It is used only for command and control functions.&lt;BR /&gt;
Bu default, this is port 8089, but a different value can be specified in &lt;CODE&gt;web.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;SplunkWeb port&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
This port is used for the GUI. This is the port that you use when pointing your browser at Splunk. This port is NEVER used for any forwarding or indexing. By default, this is port 8000, but a different value can be specified in &lt;CODE&gt;web.conf&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
Note that this port is not used on Universal Forwarders, which have no GUI.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Network Inputs&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
You can ask Splunk to monitor a port for input, using either TCP or UDP protocol. You can use any port that is not already being used (ie, you can't use the splunkd or SplunkWeb ports). Network inputs are configured in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;, and look like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://:514]
sourcetype = syslog
connection_host = dns
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For these inputs, Splunk will index the data that it receives via the port. But &lt;STRONG&gt;network inputs are not used for Splunk-to-Splunk communication&lt;/STRONG&gt; like forwarding.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Forwarding and Receiving&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
This is the Splunk-to-Splunk communication between the forwarders and indexers. It is important the indexers are receiving on the same port that the forwarders are sending! You can use any port that you like for forwarding/receiving - if it is not already being used by something else.&lt;BR /&gt;&lt;BR /&gt;
On a forwarder, this port is configured in &lt;CODE&gt;outputs.conf&lt;/CODE&gt;. Here is an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = myIndexers
[tcpout:myIndexers]
server = indexer1.mycompany.com:9997,indexer2.mycompany.com:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On an indexer, this port is configured in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;. Here is an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunktcp://:9997]
connection_host = dns
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This inputs.conf tells the indexer to listen for data from any forwarder on port 9997. The indexer will never accept incoming data on its splunkd port.&lt;/P&gt;

&lt;P&gt;I hope this clarifies things  for you.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2012 06:39:35 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-06-21T06:39:35Z</dc:date>
    <item>
      <title>splunk ports</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-ports/m-p/80358#M7274</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;So I have a question about how splunk determines which ports to listen on and forward data on? &lt;/P&gt;

&lt;P&gt;Here's the situation on my splunk forwarder:&lt;BR /&gt;
 1. I have splunkd running on port 9501.. since it starts with splunkd -p 9501..&lt;BR /&gt;
 2. In my outputs.conf it's set up like this:&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = SNZCLAKL118_9997&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;[tcpout:SNZCLAKL118_9997]&lt;BR /&gt;
server = SNZCLAKL118:9997&lt;/P&gt;

&lt;P&gt;When I do a tcpdump on those ports, it would seem that my splunk forwarder is sending data out through both those ports which is a little strange. Anyone know how splunk determines which port to send to and what data to send what port to?  Just wondering how to handle the discrepancy between starting splunkd with a -p 9501 and what's in the outputs.conf file? &lt;/P&gt;

&lt;P&gt;It's confusing since I had always thought it would just bind on port 9501 and forward all data through there. &lt;/P&gt;

&lt;P&gt;Any insight would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 05:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-ports/m-p/80358#M7274</guid>
      <dc:creator>yongly</dc:creator>
      <dc:date>2012-06-21T05:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: splunk ports</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-ports/m-p/80359#M7275</link>
      <description>&lt;P&gt;Splunk can use a number of ports, for a variety of purposes. There are defaults, but you can configure the ports however you require.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;splunkd port - AKA management port&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
This port is used for communication between splunkd and SplunkWeb (the GUI). It is also used for the REST endpoints. This port is &lt;STRONG&gt;not used for any forwarding or indexing&lt;/STRONG&gt;. It is used only for command and control functions.&lt;BR /&gt;
Bu default, this is port 8089, but a different value can be specified in &lt;CODE&gt;web.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;SplunkWeb port&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
This port is used for the GUI. This is the port that you use when pointing your browser at Splunk. This port is NEVER used for any forwarding or indexing. By default, this is port 8000, but a different value can be specified in &lt;CODE&gt;web.conf&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
Note that this port is not used on Universal Forwarders, which have no GUI.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Network Inputs&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
You can ask Splunk to monitor a port for input, using either TCP or UDP protocol. You can use any port that is not already being used (ie, you can't use the splunkd or SplunkWeb ports). Network inputs are configured in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;, and look like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://:514]
sourcetype = syslog
connection_host = dns
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For these inputs, Splunk will index the data that it receives via the port. But &lt;STRONG&gt;network inputs are not used for Splunk-to-Splunk communication&lt;/STRONG&gt; like forwarding.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Forwarding and Receiving&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
This is the Splunk-to-Splunk communication between the forwarders and indexers. It is important the indexers are receiving on the same port that the forwarders are sending! You can use any port that you like for forwarding/receiving - if it is not already being used by something else.&lt;BR /&gt;&lt;BR /&gt;
On a forwarder, this port is configured in &lt;CODE&gt;outputs.conf&lt;/CODE&gt;. Here is an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = myIndexers
[tcpout:myIndexers]
server = indexer1.mycompany.com:9997,indexer2.mycompany.com:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On an indexer, this port is configured in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;. Here is an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunktcp://:9997]
connection_host = dns
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This inputs.conf tells the indexer to listen for data from any forwarder on port 9997. The indexer will never accept incoming data on its splunkd port.&lt;/P&gt;

&lt;P&gt;I hope this clarifies things  for you.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 06:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-ports/m-p/80359#M7275</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-21T06:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: splunk ports</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-ports/m-p/80360#M7276</link>
      <description>&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/118859/diagram-of-splunk-common-network-ports.html"&gt;http://answers.splunk.com/answers/118859/diagram-of-splunk-common-network-ports.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2014 21:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-ports/m-p/80360#M7276</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2014-10-11T21:05:20Z</dc:date>
    </item>
  </channel>
</rss>

