<?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: Syslog from Cisco ASA directly into SPLUNK on Ubuntu 12.04 64bit Server in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82296#M17024</link>
    <description>&lt;P&gt;and if you have weird/old appliances where you cannot use a port other than 514, you could set up local port forwarding from 514 to your chosen high port.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2012 23:00:10 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2012-10-05T23:00:10Z</dc:date>
    <item>
      <title>Syslog from Cisco ASA directly into SPLUNK on Ubuntu 12.04 64bit Server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82294#M17022</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;Let me preface this with.  I am new to SPLUNK - I installed it 2 hours ago &amp;amp; I think it's great.&lt;BR /&gt;
I have tried to find the answers from the docs and other posts, but can't find something that will make it work.&lt;/P&gt;

&lt;P&gt;SETUP:&lt;BR /&gt;
SPLUNK 4.3.4 installed on Ubuntu 12.04 64 bit Server. Installed using tgz not deb file. &lt;BR /&gt;
Installed as user to /home/john/opt   not as sudo to /opt&lt;/P&gt;

&lt;P&gt;SUCCESS:&lt;BR /&gt;
Have added Data Source from local folder /var/log &amp;amp; this works great SPLUNK has indexed it and made it searchable&lt;/P&gt;

&lt;P&gt;NEXT STEP:&lt;BR /&gt;&lt;BR /&gt;
To add my Cisco ASA as a data source.  Now I've tried Add &amp;gt; Data Input &amp;gt; UDP &amp;gt; 514  ... but I get the error message "Encountered the following error while trying to save: In handler 'udp': Parameter name: UDP port 514 is not available"&lt;/P&gt;

&lt;P&gt;Running netstat -tuna on the Ubuntu Server confirms UDP/514 is not listening.  I wanted the SPLUNK server to open that port and "manage" it.  I want to keep things as simple as possible and not install another syslog server and then forward onto SPLUNK.  What is the most simple solution? Any guides or links much appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
JSM&lt;/P&gt;

&lt;P&gt;DETAILED Cisco Commands applied to ASA:&lt;/P&gt;

&lt;P&gt;logging enable&lt;/P&gt;

&lt;P&gt;logging buffer-size 16096&lt;/P&gt;

&lt;P&gt;logging buffered warnings&lt;/P&gt;

&lt;P&gt;logging trap notifications&lt;/P&gt;

&lt;P&gt;logging history notifications&lt;/P&gt;

&lt;P&gt;logging asdm warnings&lt;/P&gt;

&lt;P&gt;logging host inside monitoring&lt;/P&gt;

&lt;P&gt;NB "monitoring" is my SPLUNK Server 192.168.1.48&lt;/P&gt;

&lt;P&gt;This means my Cisco ASA is sending Syslog messages to the Ubuntu Server.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 21:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82294#M17022</guid>
      <dc:creator>jsmander</dc:creator>
      <dc:date>2012-10-05T21:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog from Cisco ASA directly into SPLUNK on Ubuntu 12.04 64bit Server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82295#M17023</link>
      <description>&lt;P&gt;Are you running Splunk as root?  If not, you can't listen on ports &amp;lt; 1024.  You could make Splunk like on something like 5140 and tell the ASA to use that UDP port instead.&lt;/P&gt;

&lt;P&gt;Also, ubuntu has an iptables-based firewall by default.  You'll need to poke the necessary holes for the UDP data to flow.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 22:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82295#M17023</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-10-05T22:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog from Cisco ASA directly into SPLUNK on Ubuntu 12.04 64bit Server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82296#M17024</link>
      <description>&lt;P&gt;and if you have weird/old appliances where you cannot use a port other than 514, you could set up local port forwarding from 514 to your chosen high port.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 23:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82296#M17024</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-10-05T23:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog from Cisco ASA directly into SPLUNK on Ubuntu 12.04 64bit Server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82297#M17025</link>
      <description>&lt;P&gt;Question, was that server already in uses?  &lt;/P&gt;

&lt;P&gt;Two thoughts: First tje most likely reason for the error is an application on that server already uses that port on the splunk host. Second it could be a permission issue, try starting splunk using sudo ./splunk start.  If that works you have a permission issue with accessing priivleged ports.&lt;/P&gt;

&lt;P&gt;Note: If you installed Splunk with a non-root user on Linux typically you cant listen to port below 1024.&lt;/P&gt;

&lt;P&gt;Suggestions if permission issue:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Try using iptables as a work around.&lt;/LI&gt;
&lt;LI&gt;Give Splunk splunk user root rights&lt;/LI&gt;
&lt;LI&gt;Use setcap setcap CAP_NET_BIND_SERVICE or authbind&lt;/LI&gt;
&lt;LI&gt;Change you ASA syslog port for Splunk to a higher port like 5447&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
#for setcap&lt;BR /&gt;
setcap 'cap_net_bind_service=+ep' /opt/splunk/bin/splunk&lt;BR /&gt;
#not sure of syntax for authbind.&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Other docs:&lt;BR /&gt;
&lt;A href="http://manpages.ubuntu.com/manpages/gutsy/man1/authbind.1.html" target="_blank"&gt;Ubuntu authbind manpage&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.kernel.org/doc/man-pages/online/pages/man7/capabilities.7.html" target="_blank"&gt;Linux Capabilities manpage&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://stackoverflow.com/questions/413807/is-there-a-way-for-non-root-processes-to-bind-to-privileged-ports-1024-on-l" target="_blank"&gt;Stack overflow non-root access privileged ports&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82297#M17025</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-28T12:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog from Cisco ASA directly into SPLUNK on Ubuntu 12.04 64bit Server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82298#M17026</link>
      <description>&lt;P&gt;Hi.  I used the following commands to forward UDP 514 to UDP 5140 &amp;amp; Setup SPLUNK to collect data on 5140.  It worked great.  Thanks&lt;BR /&gt;
sudo iptables -t nat -I PREROUTING --src 0/0 --dst 192.168.1.48 -p udp --dport 514 -j REDIRECT --to-ports 5140&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2012 12:18:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82298#M17026</guid>
      <dc:creator>jsmander</dc:creator>
      <dc:date>2012-10-06T12:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog from Cisco ASA directly into SPLUNK on Ubuntu 12.04 64bit Server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82299#M17027</link>
      <description>&lt;P&gt;The capabilities thing looks totally boss.  Need to look into this further.  Thanks for the info!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2012 15:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-from-Cisco-ASA-directly-into-SPLUNK-on-Ubuntu-12-04-64bit/m-p/82299#M17027</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-10-06T15:56:27Z</dc:date>
    </item>
  </channel>
</rss>

