I have set up a Splunk Enterprise trial instance on a red-hat Linux server.
I enabled and setup the HEC, however when I try the curl command to check:
Case 1: I get a successful response if I use localhost or <server name> from within the server.
curl -k http://<servername>:8088/services/collector -H "Authorization: Splunk <token>" -d '{"event": "hello world again"}'
{"text":"Success","code":0}
Case 2: I get a 404 error when I use the <servername> in the command from outside the server
curl -k http://<servername>:8088/services/collector -H "Authorization: Splunk <token>" -d '{"event": "hello world again"}'
{"text":"The requested URL was not found on this server.","code":404}
I verified that the outside world can telnet the port 8088 on the server. Also, the console opens on port 8000.
Are there any changes I need to make on the server? Or any configs on the Splunk end?
... View more