-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
I have Azure App Service hosting Asp Net Core API ( . Net Core 3.1 ).
my Splunk target
<target name="Splunk"
xsi:type="SplunkHttpEventCollector"
serverUrl="https://<splunkserver>:8088/services/collector/event"
token="token"
source="${logger}"
sourceType="_json"
index="index"
retriesOnError="3"
batchSizeBytes="0"
batchSizeCount="0"
maxConnectionsPerServer="10"
ignoreSslErrors="false">
<layout xsi:type="JsonLayout">
<attribute name="date" layout="${date:format=MM-dd-yyyy hh\:mm\:ss.fff tt}" />
<attribute name="host" layout="${hostname}" />
<attribute name="logger" layout="${logger}" />
<attribute name="message" layout="${message} ${exception}" />
</layout>
</target>
Error
SplunkHttpEventCollector(Name=Splunk_wrapped): Failed to send LogEvents Exception: Splunk.Logging.HttpEventCollectorException: Failed to send request: InternalServerError
---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
I have uploaded valid SSL certificate in azure app service store and verified cert is available using code.
Note: I don't want to ignore ssl errors using ignoreSslErrors = true
I also verified ssl cert validation using curl.