crowdsec/pkg/parser/tests/base-json-extract/test.yaml

17 lines
393 B
YAML
Raw Normal View History

2020-05-22 16:12:33 +00:00
#these are the events we input into parser
lines:
- Line:
Labels:
type: json-1
progrname: my_test_prog
Raw: '{"testfield": "some stuff", "log": "xxheader VALUE1 trailing stuff"}'
results:
- Meta:
other_field: some stuff
program: my_test_prog
Parsed:
message: xxheader VALUE1 trailing stuff
extracted_value: VALUE1
Process: true