I want to send data from the C# SDK to my Splunk Cloud Trial Sandbox.
This is what I have so far:
var service = new Service("localhost", 8089, "https");
// Log in
var args = new ReceiverSubmitArgs
Source = "splunk-sdk-tests",
SourceType = "splunk-sdk-test-event",
var receiver = new Receiver(service);
// Submit to default index
receiver.Submit("default", args, "Hello World.");
But I'm getting an error:
"The remote server returned an error: (400) Bad Request."
Why does this happen?
I realize there is also another option of sending data to TCP input.
How can I configure it in the sandbox?