Dashboards & Visualizations

HEC Continues to get 404 errors when sending webhooks

jnalewak_chef
Engager

I am trying to send notifications to an HEC in Splunk Cloud (self-service) using a json webhook from Chef Automate v2. The token I use is valid and I get success when using curl with an authentication header but not when using the following URL from Automate (actual info replaced with <> placeholders): <protocol>://input-<splunk_cloud_instance>.cloud.splunk.com:8088/services/collector/<token>

The error shows: "failed to post. Code 404. Body: {"text":"The requested URL was not found on this server.","code":404}"

Is there something different I need to do in the URL to get the message to post properly?

Tags (2)
0 Karma

jnalewak_chef
Engager

I found the issue. By default query strings are disabled for auth with HEC in Splunk Cloud. The documentation tells me to submit a ticket to an admin to get add allowQueryStringAuth=true to my token in the file: $SPLUNK_HOME/etc/apps/splunk_httpinput/local/inputs.conf. The problem is that I am using Splunk Cloud free to do testing for integration with Chef products and so I can't submit a ticket. Is there a way to do this without buying a support contract? (especially when you are just doing integration testing 🙂

Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...