Skip to content

test asset: validate fields in sample event #226

@mtojek

Description

@mtojek

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"
        },

For reference:
https://github.com/elastic/integrations/blob/master/packages/aws/data_stream/sns/sample_event.json#L6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions