github.com/crowdsecurity/crowdsec@v1.6.1/pkg/parser/tests/base-json-extract/test.yaml (about)

     1  #these are the events we input into parser
     2  lines:
     3    - Line:
     4        Labels:
     5          type: json-1
     6          progrname: my_test_prog
     7        Raw: '{"testfield": "some stuff", "log": "xxheader VALUE1 trailing stuff", "nested_1" : {"anarray" : ["foo","bar","xx1"], "xxx" : "zzzz"}}'
     8  results:
     9    - Meta:
    10        other_field: some stuff
    11        program: my_test_prog
    12      Parsed:
    13        message: xxheader VALUE1 trailing stuff
    14        extracted_value: VALUE1
    15        extracted_array_field: foo
    16        extracted_array: '["foo","bar","xx1"]'
    17        extracted_arrayfield_from_object: bar
    18      Process: true
    19