Example Vector configuration for Splunk Cloud
For my k3s installation, I wanted to try out the free tier of Splunk Cloud for storing logs. That means configuring Vector (my log collector of choice) to forward the logs to Splunk Cloud. That was easier said than done.
Figuring out that we need to use type: splunk_hec_logs
in the Vector configuraton was quite straight forward. However figuring out the endpoint
for the configuration turned out to be more of a challenge. After some time, I finally understood what my Splunk Cloud Platform instance ID is, and after encountering various 303 See Other
and Unexpected status: 404 Not Found
errors I finally got a working Vector configuration: