Hello Splunkers!!
I want to setup HEC token mechnaism. But After send some events to Splunk by using curl script. I am getting an error "{"text":"The requested URL was not found on this server.","code":404}" . Please help me to fix this issue.
default port 8088 is setup
token is also setup
Thanks in advance
@PickleRick Actually i disabled ssl from http event collect and used “http” in place of “https”. Forget the curl
@ITWhisperer I already tried but this, but not working
Don't put a slash at the end of the URL.
@PickleRick >curl -k http://127.0.0.1:8088/services/collector/event
{"text":"The requested URL was not found on this server.","code":404}
[IHT004][WALVAU-AGV-1][05-04-2023 8:21:11][C:\Users\viadmin]
>
I am getting the same error.
OK. So your Splunk server is running on Windows? And you did the HEC configuration how?
@PickleRick I got the issue and fix it.
workaround : I installed the curl agent and setup the required environmental variable and after that it works fine.
What do you mean by "curl agent"? And what environmental variable?
@PickleRick Actually i disabled ssl from http event collect and used “http” in place of “https”. Forget the curl
Try /services/collector/event