Github user ottobackwards commented on a diff in the pull request:

    https://github.com/apache/metron/pull/621#discussion_r123513501
  
    --- Diff: 
metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/bolt/ParserBolt.java
 ---
    @@ -129,18 +148,29 @@ public void execute(Tuple tuple) {
           boolean ackTuple = !writer.handleAck();
           int numWritten = 0;
           if(sensorParserConfig != null) {
    +        Map<String, Object> metadata = getMetadata(tuple, 
sensorParserConfig.readMetadata());
             List<FieldValidator> fieldValidations = 
getConfigurations().getFieldValidations();
             Optional<List<JSONObject>> messages = 
parser.parseOptional(originalMessage);
             for (JSONObject message : 
messages.orElse(Collections.emptyList())) {
               message.put(Constants.SENSOR_TYPE, getSensorType());
    --- End diff --
    
    Will the metadata in parsing be able to be used in enrichment? Can it stay 
metadata and just keep going along or does it have to be merged with the 
message? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to