metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cestella <>
Subject [GitHub] incubator-metron pull request #483: Metron-765 Add GUID to messages
Date Mon, 20 Mar 2017 13:23:55 GMT
Github user cestella commented on a diff in the pull request:
    --- Diff: metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/bolt/
    @@ -132,6 +133,9 @@ public void execute(Tuple tuple) {
             Optional<List<JSONObject>> messages = parser.parseOptional(originalMessage);
             for (JSONObject message : messages.orElse(Collections.emptyList())) {
               message.put(Constants.SENSOR_TYPE, getSensorType());
    +          if(!message.containsKey(Constants.GUID)) {
    --- End diff --
    You should probably do this after the field transformations, so that if people provide
their own GUID, they don't have one imposed on them.

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 or file a JIRA ticket
with INFRA.

View raw message