-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpClient.SendAsync not working in EventCollectorSink.cs #94
Comments
Hey @pavan2017git, Do you have some detail on the exception being thrown? If you have a simple console app try adding the following to get some additional internal information about what is going on within the sink.
Also, what package version are you targeting? HTH |
You can also checkout a full working example at https://github.com/serilog/serilog-docker, in particular https://github.com/serilog/serilog-docker/blob/master/console-sample/src/Program.cs#L22 |
Hey Matthew , |
Can you hit the HEC endpoint via a basic curl? e.g. http://dev.splunk.com/view/event-collector/SP-CAAAE7F |
when I try with curl command It working fine.Problem I was facing when I try to hit from c# application. |
Hey Matthew, Below snippet used for Ignoring SSL |
Hey Matthew, |
Hey Matthew, |
Hey @pavan2017git, Glad to see you made some progress. At this stage we are not looking to add the overload for configuration as it would not be great practice. You can still achieve this by passing in the Check out #26 which is a similar issue. I will try to track some code, however I think it will be something like the following
|
Hey Matthew, |
Hi @pavan2017git, |
Hi,
No I couldn't, but I modified code as per my requirements.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Matthew Erbs <[email protected]>
Sent: Thursday, August 9, 2018 2:39:46 AM
To: serilog/serilog-sinks-splunk
Cc: pavan2017git; Mention
Subject: Re: [serilog/serilog-sinks-splunk] HttpClient.SendAsync not working in EventCollectorSink.cs (#94)
Hi @pavan2017git<https://github.com/pavan2017git>,
Did you manage to solve your issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#94 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AgmTglaVINuzY2z8DC7UYQspF8DECMZgks5uO1OagaJpZM4Ucu2F>.
|
Closing this out as per solution above. |
Hi,
I have used this reference to push application logs to splunk but I ended up with error.
Actually when I went through repo I found EventCollectorSink.cs had EventCollectorRequest
where actual httpclient properties are configured after that next line _httpClient.SendAsync(request).ConfigureAwait(false); Here I got error every time even though passed all parameters like splunk Uri and Token.
Always throwing exception Error occurred while sending request.
Could please let me know why it is behaving like this.
Please help on this.Waiting to hear from You
Thanks.
The text was updated successfully, but these errors were encountered: