<?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 Can't add UDP input because of error &amp;quot;UDP port 514 is not available.&amp;quot;  Why? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12017#M773</link>
    <description>&lt;P&gt;Got this question today that would be useful to answer here:&lt;/P&gt;

&lt;P&gt;I'm trying to set up Splunk to accept syslog data from my Cisco routers. When I do so, by attempting to add a data input for UDP port 514, I receive the following error:&lt;/P&gt;

&lt;P&gt;Encountered the following error while trying to save: In handler 'udp': UDP port 514 is not available.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2010 04:38:34 GMT</pubDate>
    <dc:creator>the_wolverine</dc:creator>
    <dc:date>2010-04-22T04:38:34Z</dc:date>
    <item>
      <title>Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12017#M773</link>
      <description>&lt;P&gt;Got this question today that would be useful to answer here:&lt;/P&gt;

&lt;P&gt;I'm trying to set up Splunk to accept syslog data from my Cisco routers. When I do so, by attempting to add a data input for UDP port 514, I receive the following error:&lt;/P&gt;

&lt;P&gt;Encountered the following error while trying to save: In handler 'udp': UDP port 514 is not available.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2010 04:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12017#M773</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2010-04-22T04:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12018#M774</link>
      <description>&lt;P&gt;The obvious reason for this error is that port 514 is already in use on the Splunk Host.  Splunk is unable to listen on a port that is already in use by another application.&lt;/P&gt;

&lt;P&gt;Disable whatever application is listening on port 514 (syslog?).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2010 04:40:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12018#M774</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2010-04-22T04:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12019#M775</link>
      <description>&lt;P&gt;There are scanners that can detect the open port of a host.  Try to run a scanner, i.e. nmap, nessus, etc, to see what's using the port 514 on your host (or where you have your splunk installed).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2010 05:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12019#M775</guid>
      <dc:creator>BunnyHop</dc:creator>
      <dc:date>2010-04-22T05:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12020#M776</link>
      <description>&lt;P&gt;Another common reason is that you are on a unixy system, and you're not running Splunk as root. These systems require a process to be root to be bind to a port below 1024. There are some other ways around this, but they are all very OS-specific.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2010 08:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12020#M776</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-22T08:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12021#M777</link>
      <description>&lt;P&gt;If you have Splunk installed with a non-root user on LINUX, you can´t listen to ports below 1024. But....there is a work around:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/usr/sbin/iptables -t nat -A PREROUTING -m udp -p udp --dport 514 -j REDIRECT --to-ports 5447
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This command uses the IPTABLES Firewall to route UDP from port 514 to port 5447. It needs to be executed as root. And your sysadmin should make it bootable, so that this redirect is permanent and gets loaded even after a system reboot.&lt;/P&gt;

&lt;P&gt;Your inputs.conf should look like this then:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://5447]
sourcetype = networking-syslog
queue = parsingQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Apr 2010 21:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12021#M777</guid>
      <dc:creator>tpaulsen</dc:creator>
      <dc:date>2010-04-22T21:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12022#M778</link>
      <description>&lt;P&gt;If your using a Mac, then simply sudo root when you run Splunk. This bypasses the limitation mentioned by tpaulson of a non root user not having the ability to listen to ports below 1024. So assuming your path is the default, the command would be as follows.&lt;/P&gt;

&lt;P&gt;sudo ./splunk start&lt;/P&gt;

&lt;P&gt;from the /Applications/splunk/bin folder.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
Gabe&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2010 00:08:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12022#M778</guid>
      <dc:creator>gabedimeglio</dc:creator>
      <dc:date>2010-09-04T00:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12023#M779</link>
      <description>&lt;P&gt;Run (on linux) &lt;CODE&gt;netstat -nltp&lt;/CODE&gt; and &lt;CODE&gt;netstat -nlup&lt;/CODE&gt;. This should show you what is listening on each TCP and UDP port, respectively. It is very likely that syslog is in fact already running on port 514. Disabling syslog completely is probably not what you would want to do to remedy this, because it takes care of the local logging service. Without syslog you would not have /var/log/messages. To just turn off syslog's network bindings (port 514), then refer to your OS's syslog documentation.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2011 04:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12023#M779</guid>
      <dc:creator>jlunk</dc:creator>
      <dc:date>2011-03-15T04:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12024#M780</link>
      <description>&lt;P&gt;Title&lt;/P&gt;

&lt;P&gt;For the bright spark that suggested this file (which is what I am looking for), which one?&lt;BR /&gt;
 find |grep inputs.conf|grep -v READ&lt;BR /&gt;
./system/local/inputs.conf&lt;BR /&gt;
./system/default/inputs.conf&lt;BR /&gt;
./apps/search/local/inputs.conf&lt;BR /&gt;
./apps/SplunkUniversalForwarder/default/inputs.conf&lt;/P&gt;

&lt;P&gt;@Gabe wrote:  "sudo ./splunk start from the /Applications/splunk/bin folder."&lt;BR /&gt;
Now you have really stitched the end-user up.&lt;BR /&gt;&lt;BR /&gt;
Default Splunk installation is in /opt/splunkforwarder/ on Linux, and likely most O/S other than Windows and Macs.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12024#M780</guid>
      <dc:creator>fibber12345</dc:creator>
      <dc:date>2011-10-11T13:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12025#M781</link>
      <description>&lt;P&gt;this worked for me&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2012 00:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12025#M781</guid>
      <dc:creator>snevarezh</dc:creator>
      <dc:date>2012-02-08T00:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12026#M782</link>
      <description>&lt;P&gt;That command will work as a one-shot, but I don't think it will persist through a restart. Here's an example of what you can put into your IPTables file for the NAT to persist:&lt;/P&gt;

&lt;H1&gt;Redirect syslog to splunk&lt;/H1&gt;

&lt;P&gt;-A PREROUTING -p udp -m udp --dport 514 -j REDIRECT --to-ports 5514 &lt;BR /&gt;
COMMIT&lt;/P&gt;

&lt;H1&gt;Allow Syslog&lt;/H1&gt;

&lt;P&gt;-A RH-Firewall-1-INPUT -p udp -m udp --dport 5514 -j ACCEPT&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2012 19:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12026#M782</guid>
      <dc:creator>MillerTime</dc:creator>
      <dc:date>2012-02-24T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12027#M783</link>
      <description>&lt;P&gt;The default Splunk installation path did change with v4.x, depending on what kind of Forwarder you use - heavy, lightweight, or universal.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 10:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12027#M783</guid>
      <dc:creator>tpaulsen</dc:creator>
      <dc:date>2013-03-21T10:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12028#M784</link>
      <description>&lt;P&gt;i tried that way and it did not work. do you think i need to open my por 514 from my router?  i used netstat -nltp and i did not see any app using that port. it did not show the port 514 there.&lt;/P&gt;

&lt;P&gt;Active Internet connections (only servers)&lt;BR /&gt;
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name&lt;BR /&gt;
tcp        0      0 0.0.0.0:8089            0.0.0.0:*               LISTEN      19293/splunkd&lt;BR /&gt;&lt;BR /&gt;
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      2060/apache2&lt;BR /&gt;&lt;BR /&gt;
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      2799/mysqld&lt;BR /&gt;&lt;BR /&gt;
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2060/apache2&lt;BR /&gt;&lt;BR /&gt;
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      25867/sshd   &lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 06:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12028#M784</guid>
      <dc:creator>aortiz1</dc:creator>
      <dc:date>2015-05-02T06:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12029#M785</link>
      <description>&lt;P&gt;On a Mac (which is BSD based) try the following:&lt;/P&gt;

&lt;P&gt;netstat -lvnp udp | grep -e 'pid' -e '514'&lt;/P&gt;

&lt;P&gt;ps -ax | grep --pid number here--&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 23:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12029#M785</guid>
      <dc:creator>I_AM_MIKE</dc:creator>
      <dc:date>2017-10-09T23:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12030#M786</link>
      <description>&lt;P&gt;I think this answer is the answer most people are looking for, over the accepted answer. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 20:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12030#M786</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-12-12T20:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12031#M787</link>
      <description>&lt;P&gt;In new firewall-cmd you must do next step as root to redirect port 514 to 5514, so logs will be recibed at port 5514:&lt;/P&gt;

&lt;P&gt;firewall-cmd --zone=public --add-masquerade --permanent&lt;BR /&gt;
firewall-cmd --zone=public --add-forward-port=port=514:proto=udp:toport=5514 --permanent&lt;/P&gt;

&lt;P&gt;Then add in web interface &amp;gt; setup &amp;gt; input data &amp;gt; udp &amp;gt; add input data &lt;BR /&gt;
create the listening port "5514" next and set type of logs "syslog" next next... finish&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 17:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/12031#M787</guid>
      <dc:creator>luisarcila10</dc:creator>
      <dc:date>2019-02-28T17:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/545151#M90911</link>
      <description>&lt;P&gt;Splunk HF won't let you receive data on UDP 514 even if nothing else is using the port. I just verified this by disabling syslog and verifying in netstat -nlup. I also restarted Splunk and it still wont let you receive on udp 514&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/545151#M90911</guid>
      <dc:creator>mrenner</dc:creator>
      <dc:date>2021-03-24T14:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/545161#M90912</link>
      <description>&lt;P&gt;If you are running Splunk as non-root user, it cannot start listening ports below 1024.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/545161#M90912</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-24T14:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add UDP input because of error "UDP port 514 is not available."  Why?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/571711#M101234</link>
      <description>&lt;P&gt;Yes, this was the issue I had as well running Splunk on 8.2.1&lt;/P&gt;&lt;P&gt;Splunk was unable to ingest syslog data while the application was running as the user Splunk. Running as root has resolved the issue.&lt;/P&gt;&lt;P&gt;A more appropriate technical resolution would be identifying if we could set the user Splunk to be able to listen on ports lower than 1024&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 18:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-UDP-input-because-of-error-quot-UDP-port-514-is-not/m-p/571711#M101234</guid>
      <dc:creator>cain1288</dc:creator>
      <dc:date>2021-10-20T18:51:28Z</dc:date>
    </item>
  </channel>
</rss>

