The two other options would be to use a runtime field, dissect the data away, and store a field timecontrol_base and timecontrol_increment with the information. Don’t forget to set the type long.
Timecontrol_base:
String custom=dissect('%{custom}+%{}').extract($('timecontrol', ''))?.custom;
if (custom != null) {
emit(Long.parseLong(custom));
}
Timecontrol_increment:
String custom=dissect('%{}+%{custom}').extract($('timecontrol', ''))?.custom;
if (custom != null) {
emit(Long.parseLong(custom));
}
Don’t forget to use the formatter at the bottom and select duration, then seconds. This creates a human-readable interpretation!
Leave a Reply