<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why am I getting error &amp;quot;The remote server returned an error: (400) Bad Request.&amp;quot; trying to send data via C# SDK to the Splunk Cloud Trial Sandbox? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-error-quot-The-remote-server-returned-an-error/m-p/189753#M2539</link>
    <description>&lt;P&gt;see &lt;A href="http://answers.splunk.com/answers/255535/splunk-sdk-cant-connect-to-splunk-cloud-1.html#answer-305814"&gt;http://answers.splunk.com/answers/255535/splunk-sdk-cant-connect-to-splunk-cloud-1.html#answer-305814&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2015 15:29:32 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2015-09-11T15:29:32Z</dc:date>
    <item>
      <title>Why am I getting error "The remote server returned an error: (400) Bad Request." trying to send data via C# SDK to the Splunk Cloud Trial Sandbox?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-error-quot-The-remote-server-returned-an-error/m-p/189752#M2538</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I want to send data from the C# SDK to my Splunk Cloud Trial Sandbox.&lt;BR /&gt;
This is what I have so far:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            var service = new Service("localhost", 8089, "https");

            // Log in
            service.Login("admin", "changeme");

            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.");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I'm getting an error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"The remote server returned an error: (400) Bad Request."
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why does this happen?&lt;/P&gt;

&lt;P&gt;I realize there is also another option of sending data to TCP input.&lt;BR /&gt;
How can I configure it in the sandbox?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2015 14:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-error-quot-The-remote-server-returned-an-error/m-p/189752#M2538</guid>
      <dc:creator>malkiz_walkme</dc:creator>
      <dc:date>2015-03-19T14:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "The remote server returned an error: (400) Bad Request." trying to send data via C# SDK to the Splunk Cloud Trial Sandbox?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-error-quot-The-remote-server-returned-an-error/m-p/189753#M2539</link>
      <description>&lt;P&gt;see &lt;A href="http://answers.splunk.com/answers/255535/splunk-sdk-cant-connect-to-splunk-cloud-1.html#answer-305814"&gt;http://answers.splunk.com/answers/255535/splunk-sdk-cant-connect-to-splunk-cloud-1.html#answer-305814&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2015 15:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-error-quot-The-remote-server-returned-an-error/m-p/189753#M2539</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-09-11T15:29:32Z</dc:date>
    </item>
  </channel>
</rss>

