Hi there!
Just found an issue using this package.
Lib: Splunk-logging v0.9.1
OS: MacOS 10.11.6
Node: 6.4.0
Splunk: 6.5.0
We're using a node script to send JSON data to splunk, and it's been working fine. Now I've stumbled upon an issue where the text includes parentheses inside a string.
For example, this:
id:329,build:(id:164979)
becomes:
id:329,build:%28id:164979%29
(as seen inside splunk)
I've isolated the issue to splunk-logging/splunklogger.js line 435, row 47.
The content-type is set to application/x-www-form-urlencoded, even though the default options for the request module include "json": true
I hope that line 435 can be removed entirely. It makes no sense to me -- both indirectly setting the content-type to json, and then explicitly setting it to x-www-form-urlencoded afterwards.
Hi there!
Just found an issue using this package.
Lib: Splunk-logging v0.9.1
OS: MacOS 10.11.6
Node: 6.4.0
Splunk: 6.5.0
We're using a node script to send JSON data to splunk, and it's been working fine. Now I've stumbled upon an issue where the text includes parentheses inside a string.
For example, this:
id:329,build:(id:164979)becomes:
id:329,build:%28id:164979%29(as seen inside splunk)
I've isolated the issue to splunk-logging/splunklogger.js line 435, row 47.
The content-type is set to application/x-www-form-urlencoded, even though the default options for the request module include
"json": trueI hope that line 435 can be removed entirely. It makes no sense to me -- both indirectly setting the content-type to json, and then explicitly setting it to x-www-form-urlencoded afterwards.