Thank you for your response, here's the actual problematic case I was trying to reproduce.
[PARSER]
Name docker
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
# Command | Decoder | Field | Optional Action
# =============|==================|=================
Decode_Field_As escaped log
Kafka:
{"@timestamp":1537811630.205589, "log":"+ [[ stage != de\v ]]\n", "stream":"stderr", "time":"2018-09-24T17:53:50.205588946Z"}
With
Decode_Field_As escaped_utf8 log
Kafka (note the extra backslash, \\\v):
{"@timestamp":1537811630.205589, "log":"+ [[ stage != \\d\\e\\\v ]]\\n", "stream":"stderr", "time":"2018-09-24T17:53:50.205588946Z"}
Without decoding (correct, since docker produces valid JSON):
{"@timestamp":1537811630.205589, "log":"+ [[ stage != \\\\d\\\\e\\\\v ]]\\n", "stream":"stderr", "time":"2018-09-24T17:53:50.205588946Z"}
--------
Thank you,
David