Splunk Error: port is already bound

Error

[root@ip-172-31-19-160 bin]# pwd
/opt/splunkforwarder/bin
[root@ip-172-31-19-160 bin]# ./splunk start --accept-license

Splunk> The Notorious B.I.G. D.A.T.A.

Checking prerequisites...
        Checking mgmt port [8089]: not available
ERROR: mgmt port [8089] - port is already bound.  Splunk needs to use this port.
Would you like to change ports? [y/n]:

Solution

Check if port 8089 is used by some other services.

Splunk Error: insufficient privileges

host="EC2AMAZ-7GATALC" | delete

Error in 'delete' command: You have insufficient privileges to delete events.
The search job has failed due to an error. You may be able view the job in the Job Inspector.

Solution

 User is not having required permission to delete.