-
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
CompactJsonFormatter is not working with Splunk EventCollector Sink #52
Comments
Hi @avireddy02, The BAD Request will be related to the By default, a formatter is included with the Sink here. In particular check out this line, you can see some specific properties set in the JSON. HTH. |
@avireddy02 if you think a compact formatter is worthwhile, please feel free to submit a PR with a subclassed formatter specific for Splunk. |
Added new CompactSplunkJsonFormatter from #52
Fixed in #57 |
public CompactSplunkJsonFormatter(bool renderTemplate = false, string source = null, string sourceType = null, string host = null, string index = null) When host is not specified, can we default host to Dns.GetHostName()? |
That sounds reasonable. |
Splunk EventCollector Sink is not working with CompactJsonFormatter. Looks like it's not generating Event attribute.
Error: A status code of BadRequest was received when attempting to send to http://localhost:8088/services/collector. The event has been discarded and will not be placed back in the queue.
The text was updated successfully, but these errors were encountered: