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

HttpEventlogCollector and sourceType #38

Closed
albertromkes opened this issue Oct 25, 2016 · 2 comments
Closed

HttpEventlogCollector and sourceType #38

albertromkes opened this issue Oct 25, 2016 · 2 comments

Comments

@albertromkes
Copy link
Contributor

When posting an entry with the 'sourceType' parameter set, I'll get a 404 bad request back from Splunk (version 6.4.1). If I change 'sourceType' into 'sourcetype' (all lowercase), it starts working.

I'm not sure if this is a setting in Splunk itself or a bug in this sink. If it's a bug, let me know. Then I'll create a pull request with a fix.

@merbla
Copy link
Contributor

merbla commented Oct 25, 2016

Hey @albertromkes,

Thanks for the note. I can confirm the bug, I believe it relates to changes to a new JSON formatter.

It relates to https://github.com/serilog/serilog-sinks-splunk/blob/dev/src/Serilog.Sinks.Splunk/Sinks/Splunk/SplunkJsonFormatter.cs#L79 as you mentioned.

If you are happy to do a PR that would be great, otherwise let me know and I will jump on it.

albertromkes added a commit to albertromkes/serilog-sinks-splunk that referenced this issue Oct 25, 2016
merbla added a commit that referenced this issue Oct 25, 2016
Fix for issue #38. sourceType is now all lowercase -> sourcetype
@merbla merbla closed this as completed Oct 25, 2016
@merbla
Copy link
Contributor

merbla commented Oct 25, 2016

@albertromkes the new package is up at Nuget.

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

2 participants