This test verifies that wrapped JSON documents are parsed correctly:
{"log":"{\"message\":\"Hello world\"}"}
This is a very important for environments that wrap log output in a JSON document, such as Docker and Kubernetes.
Subject | Result |
---|---|
Filebeat | ✅ |
FluentBit | ❌ |
FluentD | ✅ |
Logstash | ✅ |
Splunk HF | ✅ |
Splunk UF | ✅ |
Vector | ✅ |
The subject is configured to:
-
Receive the following data:
{"log":"{\"message\":\"Hello world\"}"}
-
Parse the data as JSON
-
Output the data, re-encoded as JSON
You can run this test via:
test -t wrapped_json_correctness