The elastic-package should validate if sample events (JSON files) contain fields defined in the fields folder. I spotted in the Integrations repository, that some files don't only contain events, but also wrapping fields with underscores:
{
"_index": "metrics-aws.sns-default-000001",
"_id": "Ds9vXHIBpGMSUzkZmyod",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2020-05-28T17:58:27.154Z",
"service": {
"type": "aws"
},
"stream": {
"dataset": "aws.sns",
"namespace": "default",
"type": "metrics"
},
"ecs": {
"version": "1.5.0"
},
The elastic-package should validate if sample events (JSON files) contain fields defined in the
fieldsfolder. I spotted in the Integrations repository, that some files don't only contain events, but also wrapping fields with underscores:For reference:
https://github.com/elastic/integrations/blob/master/packages/aws/data_stream/sns/sample_event.json#L6