Skip to content

Commit 6d65f4e

Browse files
authored
Add java duration converter to max_event_age config property (#24455)
* Add java duration converter to max_event_age config property * Add java duration converter to max_event_age config property
1 parent 5e0ff78 commit 6d65f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graylog2-server/src/main/java/org/graylog2/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public class Configuration extends CaConfiguration implements CommonNodeConfigur
301301
@Parameter(value = "global_inputs_only")
302302
private boolean globalInputsOnly = false;
303303

304-
@Parameter(value = "max_event_age", validators = PositiveDurationValidator.class)
304+
@Parameter(value = "max_event_age", converter = JavaDurationConverter.class)
305305
private java.time.Duration maxEventAge = java.time.Duration.ofDays(1L);
306306

307307
public boolean maintainsStreamAwareFieldTypes() {

0 commit comments

Comments
 (0)