Security

How can i add udp port 514 and 161 on the ./splunk?

cebo_myeza
Path Finder

I am using centos and i have opened the ports on the iptables but now if i try to add them on the ./splunk they give me the following messages:

root@localhost intern.network_trainee]# cd /opt/splunk/bin/

[root@localhost bin]# ./splunk add udp 514 -sourcetype syslog
In handler 'udp': Parameter name: UDP port 514 is not available.

[root@localhost bin]# ./splunk add udp 161 -sourcetype snmp
In handler 'udp': Parameter name: UDP port 161 is not available.

[root@localhost bin]#

And what confuses me the most is the $SPLUNK_HOME and /opt/spunk/ , is there a difference between the two directories?

0 Karma

MuS
Legend

Hi cebo_myeza,

exactly like answered here http://answers.splunk.com/answers/242650/how-to-allow-splunk-to-connect-udp-161-port-in-lin.html
Make sure the ports are not in use, also check any SELINUX settings.

cheers, MuS

cebo_myeza
Path Finder

in order to use ./splunk they say i must set environmental variables, like below

export SPLUNK_HOME=/opt/splunk
export PATH=$SPLUNK_HOME/bin:$PATH

Do i have to type this inside the setEnv file

0 Karma

MuS
Legend

You can use the file provided by Splunk like this:

source /opt/splunk/bin/setSplunkEnv
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...