Skip to content
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

Splunk URL path is ignored #24

Open
noppo opened this issue Jan 16, 2023 · 0 comments
Open

Splunk URL path is ignored #24

noppo opened this issue Jan 16, 2023 · 0 comments

Comments

@noppo
Copy link

noppo commented Jan 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant