Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Wrapped JSON Correctness Test

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.

Results

Subject Result
Filebeat ✅
FluentBit ❌
FluentD ✅
Logstash ✅
Splunk HF ✅
Splunk UF ✅
Vector ✅

Design

The subject is configured to:

  1. Receive the following data:

    {"log":"{\"message\":\"Hello world\"}"}
  2. Parse the data as JSON

  3. Output the data, re-encoded as JSON

Try It

You can run this test via:

test -t wrapped_json_correctness

Resources