Skip to content

Add new lint/check to ensure event.dataset is set correctly #217

@P1llus

Description

@P1llus

When adding event.dataset to a package in base-fields.yml, there is no check or lint that complains if the value is not "package.datastream", for example

Package panw_cortex_xdr, datastream: alerts

- name: event.dataset
  type: constant_keyword
  description: Event dataset
  value: panw_cortex.xdr

When starting the stack and testing the package manually, it complains that event.dataset is not set to panw_cortex_xdr.alerts, however it would be nice to do this check already on build/lint, saves time in the future, and makes sure no human error might cause it (like I did).

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