Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
ansible
configurations/default Rename nested_json_correctness to wrapped_json_correctness Jun 13, 2019
terraform
README.md

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

You can’t perform that action at this time.