Getting Data In

HTTP Event collector not working for .NET logging

saranya_fmr
Communicator

We are getting authorization error while calling the service from dot net or java client. It is working fine with curl command( -k option) but failing on the client side due to some certificate missing.

For curl I have noticed when we call the service without –k it fails (authorization issue).

I have tried with postman as well. It is throwing error like this “Install self-signed certificate in chrome”.

Any help is appreciated.

Tags (2)
0 Karma
1 Solution

nickhills
Ultra Champion

The issue will likely be that your .Net client is not trusting the certificate presented by Splunk(why would it? - its self signed).

The -k switch for curl essentially says "ignore all SSL errors or warnings and carry on regardless"

The bad (wrong) solution is to tell your .Net app to disregard certificate problems.
The correct solution is to install a certificate that your .Net application trusts, such as one from a public CA, or an internal CA which your enterprise trusts.

If my comment helps, please give it a thumbs up!

View solution in original post

nickhills
Ultra Champion

The issue will likely be that your .Net client is not trusting the certificate presented by Splunk(why would it? - its self signed).

The -k switch for curl essentially says "ignore all SSL errors or warnings and carry on regardless"

The bad (wrong) solution is to tell your .Net app to disregard certificate problems.
The correct solution is to install a certificate that your .Net application trusts, such as one from a public CA, or an internal CA which your enterprise trusts.

If my comment helps, please give it a thumbs up!

sloshburch
Splunk Employee
Splunk Employee

Detailed more in the the Securing Splunk Enterprise manual. Specifically, this section is a good place to start: http://docs.splunk.com/Documentation/Splunk/latest/Security/AboutsecuringyourSplunkconfigurationwith...

0 Karma

gjanders
SplunkTrust
SplunkTrust

Can you confirm you are sending in the authorization header to the Splunk HEC collector? You will need to include the token in the correct format to avoid the authorization error.

Furthermore postman will not work with self-signed certificates unless you install them in Chrome (which is relatively easy to do)

0 Karma
Get Updates on the Splunk Community!

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering.  Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...