Graylog2 / Graylog2/graylog2-server

Implement event validation in EventProcessorEngine

Open
#6,216 0 comments 0 reactions 0 assignees View on GitHub
alerting
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## Description

We expect an `EventProcessor` to set certain fields on an event. To make sure created events are valid, we have to implement an event validator that will be called in the `EventProcessorEngine`.

It might also be useful to add required attributes to the `EventFactory#createEvent()` signature. That way an event processor author cannot forget to add them. But we should avoid making the `#createEvent()` signature too large to ensure it's still okay to handle.

## Tasks

- [ ] tbd

## Open Questions

- [ ] tbd

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.