@Override protected void doSubstitution(InternalEvent ievent, DeserializedEvent devent, Map<String, Object> nested) { Pair<String, Map<String, Object>> kv; try { kv = getRegexMatches(devent); } catch (FieldNotFoundException e) { if (this.failSrcNotFound) { throw new OperationException(e); } return; } nested.putAll(kv.getValue()); /* * Remove source field */ if (this.removeSrcField) { try { devent.removeField(kv.getKey()); } catch (FieldNotFoundException e) { if (this.failSrcNotFound) { throw new OperationException(e); } } } }
@Override protected void doSubstitution(InternalEvent ievent, DeserializedEvent devent, Map<String, Object> nested) { Pair<String, Map<String, Object>> kv; try { kv = getRegexMatches(devent); } catch (FieldNotFoundException e) { if (this.failSrcNotFound) { throw new OperationException(e); } return; } nested.putAll(kv.getValue()); /* * Remove source field */ if (this.removeSrcField) { try { devent.removeField(kv.getKey()); } catch (FieldNotFoundException e) { if (this.failSrcNotFound) { throw new OperationException(e); } } } }
devent.removeField(kv.getKey()); } catch (FieldNotFoundException e) { if (this.failSrcNotFound) {
devent.removeField(kv.getKey()); } catch (FieldNotFoundException e) { if (this.failSrcNotFound) {
devent.removeField(fieldName); } catch (FieldNotFoundException e) { devent.removeField(fieldName); } catch (FieldNotFoundException e) {
devent.removeField(fieldName); } catch (FieldNotFoundException e) { devent.removeField(fieldName); } catch (FieldNotFoundException e) {