splunk / docker-logging-plugin

Splunk Connect for Docker is a Docker logging plugin that allows docker containers to send their logs directly to Splunk Enterprise or a Splunk Cloud deployment.
Apache License 2.0
65 stars 25 forks source link

Feature/issue6 malformed message #8

Closed sharonx closed 6 years ago

sharonx commented 6 years ago
dtregonning commented 6 years ago

Thanks for PR @sharonx

sharonx commented 6 years ago

@dtregonning HEC doesn't accept empty string. But empty string is acceptable by JSON as value.

Here I'm trying to decode the message while reading from the fifo. If it is empty, the message is discarded so it won't make it to the json marshal stage.

sharonx commented 6 years ago

@chenziliang thanks for the comments. I updated the PR.