<?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: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286608#M54725</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Updated answer&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This is no longer an issue in the latest version of Go.  &lt;A href="https://golang.org/pkg/crypto/tls/"&gt;crypto/tls&lt;/A&gt; now supports the ECDH-ECDSA-AES256-GCM-SHA384 certificates used by Splunk Cloud trial's HTTP event collector.  &lt;/P&gt;

&lt;P&gt;I've tested this using &lt;A href="https://github.com/AndyNortrup/go-splunk-event-collector"&gt;this library&lt;/A&gt; which provides an io.Writer that writes to HTTP event collector.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 23:47:38 GMT</pubDate>
    <dc:creator>anortrup_splunk</dc:creator>
    <dc:date>2017-07-24T23:47:38Z</dc:date>
    <item>
      <title>HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286582#M54699</link>
      <description>&lt;P&gt;I'm attempting to send a log event from a piece of Go code, but am receiving a connection refused error.  If I use curl to send test data, I get an OK status back, but I don't see the data show up in my Splunk instance.&lt;/P&gt;

&lt;P&gt;My request data looks like this (formatted pretty)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;POST /services/collector HTTP/1.1
Host: input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8088
Authorization: Splunk {token}
Content-Type: application/json
{"time":1450588381,"host":"Golang","source":"HTTPSplunkEvent","sourcetype":"Test","index":"tweet_harvest","event":"This is a test"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My error comes back as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;--- FAIL: TestSendEvent (0.51s)
event_test.go:22: Error sending event: "Post &lt;A href="https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8088/services/collector:" target="test_blank"&gt;https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8088/services/collector:&lt;/A&gt; remote error: handshake failure"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My code looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import (
    "bytes"
    "crypto/tls"
    "encoding/json"
    "errors"
    "fmt"
    "net/http"
    "net/http/httputil"
    "strconv"
)

//Event is a struct that holds all data to be sent to a Splunk HTTP logging
//endpoint
type Event struct {
    Time       int64       `json:"time"`
    Host       string      `json:"host"`
    Source     string      `json:"source"`
    Sourcetype string      `json:"sourcetype"`
    Index      string      `json:"index"`
    Event      interface{} `json:"event"`
}

//Send the event to the specified Splunk Server
func (e Event) Send(destination string, token string, disableCertValidation bool) error {

    //Ensure we have all of the values for the event
    if e.Time == 0 || e.Host == "" || e.Source == "" || e.Sourcetype == "" || e.Index == "" || e.Event == nil {
        return errors.New("All fields in Event must have a value")
    }

    //Create a byte array with the data
    b, err := json.Marshal(e)

    //Create client and request
    client := &amp;amp;http.Client{}
    request, err := http.NewRequest("POST", destination, bytes.NewBuffer(b))
    if err != nil {
        return err
    }

    //If we are working with a trial account the certificate will be self signed so we want to ignore certificate verification
    if disableCertValidation {
        tr := &amp;amp;http.Transport{
            TLSClientConfig: &amp;amp;tls.Config{InsecureSkipVerify: true},
        }
        client.Transport = tr
    }

    header := http.Header{}
    header.Add("Authorization", "Splunk "+token)
    header.Set("Content-Type", "application/json")
    request.Header = header

    resp, err := client.Do(request)
    if err != nil {
        dump, _ := httputil.DumpRequest(request, true)
        fmt.Printf("Dumping request: %s\n", dump)
        return err
    }
    defer resp.Body.Close()

    if resp.StatusCode != http.StatusOK {
        dump, err := httputil.DumpResponse(resp, true)
        fmt.Printf("RESPONSE: %q\n", dump)
        return err
    }

    //Any code other than 200 is an
    var splunkResponse Response
    decoder := json.NewDecoder(resp.Body)
    err = decoder.Decode(&amp;amp;splunkResponse)

    if err != nil {
        fmt.Printf("Error decoding resposne\n")
        return err
    }

    if splunkResponse.Code != SplunkResponseOK {

        fmt.Printf("Splunk Response code not OK\n")
        return errors.New(strconv.Itoa(splunkResponse.Code) + ": " + splunkResponse.Text)
    }

    //Everything is fine return nil error
    return nil

}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And my test code: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import (
    "testing"
    "time"
)

func TestSendEvent(t *testing.T) {
    event := &amp;amp;Event{
        Time:       time.Now().Unix(),
        Index:      "tweet_harvest",
        Source:     "HTTPSplunkEvent",
        Sourcetype: "Test",
        Event:      "This is a test",
        Host:       "Golang",
    }

    err := event.Send("https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8088/services/collector",
        "8CEB3C52-47B9-451E-81A9-4E45A299D41C", true)

    if err != nil {
        t.Fatalf("Error sending event: %#v\n", err.Error())
    }
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Dec 2015 05:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286582#M54699</guid>
      <dc:creator>anortrup</dc:creator>
      <dc:date>2015-12-20T05:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286583#M54700</link>
      <description>&lt;P&gt;Is the port the correct splunkd port?  By default its 8089 not 8088 as you have written in your script.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;A href="https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8088/services/collector" target="test_blank"&gt;https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8088/services/collector&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;should probably be this instead:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;A href="https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8089/services/collector" target="test_blank"&gt;https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8089/services/collector&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2015 10:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286583#M54700</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-20T10:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286584#M54701</link>
      <description>&lt;P&gt;The &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE6P"&gt;documentation&lt;/A&gt; for event collector uses 8088 not 8089.  I can use 8089, and I change from getting Connection Refused to 401 Not Properly Authenticated.  Not sure if that is progress or not.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2015 17:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286584#M54701</guid>
      <dc:creator>anortrup</dc:creator>
      <dc:date>2015-12-20T17:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286585#M54702</link>
      <description>&lt;P&gt;Yeah, I made comment on the documentation page asking if it should be 8088 or 8089.  I'm certain its 8089 because it's the REST api and the REST API is port 8089 by default.&lt;/P&gt;

&lt;P&gt;SO now you have auth failed, you need to add your credentials to your script.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://golang.org/pkg/net/url/"&gt;https://golang.org/pkg/net/url/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The url package seems to support username and password.  You might also cheat by putting username and password in the uri  using http lib you're using ... &lt;A href="http://user:pass@host:8089/endpoints"&gt;http://user:pass@host:8089/endpoints&lt;/A&gt;...&lt;/P&gt;

&lt;P&gt;This tutorial tells you how to use curl to auth with the restapi if you look around the interwebs youll find other examples:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/RESTTUT/RESTconfigurations"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/RESTTUT/RESTconfigurations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I always start with curl and make it work there first.  Once i have it working with curl, i script it otherwise.&lt;/P&gt;

&lt;P&gt;I just feel it's faster that way.  Of course curl is a linux command... i use advanced rest api addon for google chrome when in windows.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2015 22:06:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286585#M54702</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-20T22:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286586#M54703</link>
      <description>&lt;P&gt;You're so close!&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2015 22:14:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286586#M54703</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-20T22:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286587#M54704</link>
      <description>&lt;P&gt;I see what you are saying about the port difference, and respect that you have way more experience, but I don't think the documentation is in error.  If I change the port numbers when using curl I get the correct result with 8088 and an error with 8089.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8088/services/collector/event" target="test_blank"&gt;https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk 8CEB3C52-47B9-451E-81A9-4E45A299D41C" -d '{"event": "hello world"}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"text":"Success","code":0}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which is what you want.&lt;/P&gt;

&lt;P&gt;While: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8089/services/collector/event" target="test_blank"&gt;https://input-prd-p-zd5ktsgk9g47.cloud.splunk.com:8089/services/collector/event&lt;/A&gt; -H "Authorization: 8CEB3C52-47B9-451E-81A9-4E45A299D41C" -d '{"event": "hello world"}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;returns:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;messages&amp;gt;
    &amp;lt;msg type="ERROR"&amp;gt;Unauthorized&amp;lt;/msg&amp;gt;
  &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think the difference is that the event collector is using token based authentication rather than the REST client's user/password authentication.&lt;/P&gt;

&lt;P&gt;I still have two problems. One, my code still gets a handshake failure with 8088.  Two, the event I sent with Curl doesn't show up inside of my Splunk instance.&lt;/P&gt;

&lt;P&gt;-Andy&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 01:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286587#M54704</guid>
      <dc:creator>anortrup</dc:creator>
      <dc:date>2015-12-21T01:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286588#M54705</link>
      <description>&lt;P&gt;I fixed the problem with Curl by specifying the index.  So I'm down to just the handshake problem with Go.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 01:15:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286588#M54705</guid>
      <dc:creator>anortrup</dc:creator>
      <dc:date>2015-12-21T01:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286589#M54706</link>
      <description>&lt;P&gt;So I think that I've narrowed this down to Go doesn't support the self signed certificate used by the trial version of Splunk Cloud (ECDH-ECDSA-AES256-GCM-SHA384).  &lt;/P&gt;

&lt;P&gt;The list of supported cipher suites for go is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    TLS_RSA_WITH_RC4_128_SHA                uint16 = 0x0005
    TLS_RSA_WITH_3DES_EDE_CBC_SHA           uint16 = 0x000a
    TLS_RSA_WITH_AES_128_CBC_SHA            uint16 = 0x002f
    TLS_RSA_WITH_AES_256_CBC_SHA            uint16 = 0x0035
    TLS_ECDHE_ECDSA_WITH_RC4_128_SHA        uint16 = 0xc007
    TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA    uint16 = 0xc009
    TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA    uint16 = 0xc00a
    TLS_ECDHE_RSA_WITH_RC4_128_SHA          uint16 = 0xc011
    TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA     uint16 = 0xc012
    TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA      uint16 = 0xc013
    TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA      uint16 = 0xc014
    TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256   uint16 = 0xc02f
    TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 uint16 = 0xc02b
    TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384   uint16 = 0xc030
    TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 uint16 = 0xc02c
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so I'm going to have to find an alternative way to do this.  That said, I suspect that my code would work if I had a paid instance of Splunk with real certificates, which is more than I can commit to for an experimental project.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 02:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286589#M54706</guid>
      <dc:creator>anortrup</dc:creator>
      <dc:date>2015-12-21T02:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286590#M54707</link>
      <description>&lt;P&gt;The HEC will you 8088 by default. REST API is 8089. In this case, you are using the HEC (HTTP Event Collector) so 8088 is the correct port. &lt;/P&gt;

&lt;P&gt;Did you setup the input with authentication from the Splunk Cloud instance?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 05:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286590#M54707</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-12-21T05:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286591#M54708</link>
      <description>&lt;P&gt;Esix,&lt;/P&gt;

&lt;P&gt;I created a HEC token as directed by the documentation, but Go doesn't appear to support the cipher suite that the Splunk Cloud Trial comes with, unless their is a way to configure the cipher suite myself in the cloud, I think I'm out of luck for use of HEC.  &lt;/P&gt;

&lt;P&gt;I think I can drop back and use the REST API instead, but it is going to take some rewriting.&lt;/P&gt;

&lt;P&gt;-Andy &lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 01:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286591#M54708</guid>
      <dc:creator>anortrup</dc:creator>
      <dc:date>2015-12-22T01:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286592#M54709</link>
      <description>&lt;P&gt;so for curl, since the certificates are self-signed throw the -k flag&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://http-inputs-stackname.splunkcloud.com/services/collector/event" target="test_blank"&gt;https://http-inputs-stackname.splunkcloud.com/services/collector/event&lt;/A&gt; -H "Authorization: Splunk [your token]" -d '{"event": "Tie me kangaroo down, sport"}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;-k, --insecure&lt;BR /&gt;
              (SSL)  This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. This makes all connections conâ€&amp;#144;&lt;BR /&gt;
              sidered "insecure" fail unless -k, --insecure is used.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 19:35:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286592#M54709</guid>
      <dc:creator>khourihan_splun</dc:creator>
      <dc:date>2016-01-17T19:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286593#M54710</link>
      <description>&lt;P&gt;Curl worked fine, the problem is that the Go doesn't support the non ephemeral key used by the trial certifications. &lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 19:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286593#M54710</guid>
      <dc:creator>anortrup</dc:creator>
      <dc:date>2016-01-17T19:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286594#M54711</link>
      <description>&lt;P&gt;@anortrup From that list of Go supported ciphers, isn't that last one what you need?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 uint16 = 0xc02c
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've sent a note over to our CloudOps guys to see if they can help you. Feel free to email me and I can work on this with you. &lt;A href="mailto:kyle@splunk.com"&gt;kyle@splunk.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 20:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286594#M54711</guid>
      <dc:creator>khourihan_splun</dc:creator>
      <dc:date>2016-01-17T20:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286595#M54712</link>
      <description>&lt;P&gt;@anortrup the cert is set to get updated to one that will be compatible.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 23:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286595#M54712</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-01-17T23:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286596#M54713</link>
      <description>&lt;P&gt;@anortrup this works in a Splunk clustered installation, but not in trial / single instance yet. It is a known issue that we are working on.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 23:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286596#M54713</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-01-17T23:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286597#M54714</link>
      <description>&lt;P&gt;port 8088 worked for me, but note the documentation for the "curl" example - it uses the "-k" option to allow "insecure" SSL connections. &lt;/P&gt;

&lt;P&gt;I got nodeJS to work by setting the "rejectUnauhtorized: false" option to the https.request function.&lt;/P&gt;

&lt;P&gt;Nevertheless, I've still seen Splunk return 200 (OK) to the https POST but still drop data.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 20:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286597#M54714</guid>
      <dc:creator>netrc</dc:creator>
      <dc:date>2016-02-24T20:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286598#M54715</link>
      <description>&lt;P&gt;@netrc what do you mean it is dropping data? &lt;/P&gt;

&lt;P&gt;In terms of the self-signed cert, it might work for node, but it doesn't work for several other stacks we tested namely .NET and Java. The main issue is the type of ECC cert we used is not compatible with several of these stacks.&lt;/P&gt;

&lt;P&gt;It has still not been fixed, but it will be soon / our cloud team is working on it.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 22:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286598#M54715</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-02-24T22:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286599#M54716</link>
      <description>&lt;P&gt;As HEC is newer I have no experience with it... Just know 8088 is easy to typo as 8089 and vice versa.&lt;/P&gt;

&lt;P&gt;Looks like you figured it out.  Sorry but lots of issues with free Splunk and integrations.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 21:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286599#M54716</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-02-27T21:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286600#M54717</link>
      <description>&lt;P&gt;I agree.  Sorry we couldn't make it work.  Probably works fine with Splunk enterprise if you want to test.  Also I covered your comment to the answer.  Please mark it as such if you can.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 21:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286600#M54717</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-02-27T21:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to troubleshoot why I'm getting a connection refused error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286601#M54718</link>
      <description>&lt;P&gt;Do you know if this has been fix or if there is a workaround?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 15:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-troubleshoot-why-I-m-getting-a/m-p/286601#M54718</guid>
      <dc:creator>ncrisler</dc:creator>
      <dc:date>2016-04-21T15:42:28Z</dc:date>
    </item>
  </channel>
</rss>

