Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.16 KB

File metadata and controls

60 lines (43 loc) · 1.16 KB

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