graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Prevent saving an Event Definition with Cardinality Aggregation without field specified.

Open luk-kaminski opened this issue 2 years ago • 1 comments

Prevent saving an Event Definition with Cardinality Aggregation without field specified.

Expected Behavior

Field should be mandatory for Cardinality Aggregation.

Current Behavior

You can save an Event Definition with Cardinality Aggregation ... without field specified: image

Possible Solution

Better validation, probably both BE and FE.

Steps to Reproduce (for bugs)

  1. Create or edit event definition.
  2. Choose: Create Events for Definition if... -> Aggregation of results reaches a threshold
  3. Pick cardinality, but do not choose a field.
  4. Notice you can save this kind of event definition.

Context

HS-2290625939

Your Environment

  • Graylog Version: 5.2.3

luk-kaminski avatar Jan 24 '24 11:01 luk-kaminski

Related to https://github.com/Graylog2/graylog2-server/issues/17367

thll avatar Jan 24 '24 15:01 thll