You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
Thank you for your good work with this Appender
Just wanted to report an issue where the path part of parameter "ServerUrl" is ignored.
In our Splunk setup it very important that the path is /services/collector/event
However, in your code it seems the path is always overridden with a constant definde in "HttpEventCollectorPath"
So we changed: HttpEventCollectorSender.cs line 160 this.httpEventCollectorEndpointUri = new Uri(uri, HttpEventCollectorPath);
We changed it to: this.httpEventCollectorEndpointUri = uri.ToString().Contains(HttpEventCollectorPath) ? uri : new Uri(uri, HttpEventCollectorPath);
This is working for us now, do you want to implement that in your code?
Jan
The text was updated successfully, but these errors were encountered:
Hello
Thank you for your good work with this Appender
Just wanted to report an issue where the path part of parameter "ServerUrl" is ignored.
In our Splunk setup it very important that the path is /services/collector/event
However, in your code it seems the path is always overridden with a constant definde in "HttpEventCollectorPath"
So we changed: HttpEventCollectorSender.cs line 160
this.httpEventCollectorEndpointUri = new Uri(uri, HttpEventCollectorPath);
We changed it to:
this.httpEventCollectorEndpointUri = uri.ToString().Contains(HttpEventCollectorPath) ? uri : new Uri(uri, HttpEventCollectorPath);
This is working for us now, do you want to implement that in your code?
Jan
The text was updated successfully, but these errors were encountered: