<?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 Help with source code  for logging in Splunk Cloud in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-source-code-for-logging-in-Splunk-Cloud/m-p/442623#M77120</link>
    <description>&lt;P&gt;I am trying to post logs onto Splunk cloud from .NET application. &lt;BR /&gt;
Below is the source code, please let me know if am missing something:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;public bool SendDataToSplunk()
        {
            var middleware = new HttpEventCollectorResendMiddleware(100);
            var ecSender = new HttpEventCollectorSender(new Uri("https://prd-p-pqh9ws5tppvf.cloud.splunk.com"),  //http port as set in global setting
                "c5731f11-dd2b-4261-ac68-7292d1bcb6a4",  // token
                null,
                HttpEventCollectorSender.SendMode.Sequential,
                0,
                0,
                0,
                middleware.Plugin
            );
            ecSender.OnError += o =&amp;gt; Console.WriteLine(o.Message);
            ecSender.Send(Guid.NewGuid().ToString(), "INFO", null, new { Foo = "Vihaan" });
            ecSender.FlushSync();

            return true;
        }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Aug 2019 22:04:23 GMT</pubDate>
    <dc:creator>venkatesanengin</dc:creator>
    <dc:date>2019-08-09T22:04:23Z</dc:date>
    <item>
      <title>Help with source code  for logging in Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-source-code-for-logging-in-Splunk-Cloud/m-p/442623#M77120</link>
      <description>&lt;P&gt;I am trying to post logs onto Splunk cloud from .NET application. &lt;BR /&gt;
Below is the source code, please let me know if am missing something:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;public bool SendDataToSplunk()
        {
            var middleware = new HttpEventCollectorResendMiddleware(100);
            var ecSender = new HttpEventCollectorSender(new Uri("https://prd-p-pqh9ws5tppvf.cloud.splunk.com"),  //http port as set in global setting
                "c5731f11-dd2b-4261-ac68-7292d1bcb6a4",  // token
                null,
                HttpEventCollectorSender.SendMode.Sequential,
                0,
                0,
                0,
                middleware.Plugin
            );
            ecSender.OnError += o =&amp;gt; Console.WriteLine(o.Message);
            ecSender.Send(Guid.NewGuid().ToString(), "INFO", null, new { Foo = "Vihaan" });
            ecSender.FlushSync();

            return true;
        }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Aug 2019 22:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-source-code-for-logging-in-Splunk-Cloud/m-p/442623#M77120</guid>
      <dc:creator>venkatesanengin</dc:creator>
      <dc:date>2019-08-09T22:04:23Z</dc:date>
    </item>
  </channel>
</rss>

