Flume
  1. Flume
  2. FLUME-2431

Add simple regex search-and-replace interceptor

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It would be nice to have a simple interceptor that would allow for running regular expressions inline on the event body contents, assuming that event body is a string.

      1. FLUME-2431-3.patch
        12 kB
        Mike Percy
      2. FLUME-2431-2.patch
        12 kB
        Mike Percy
      3. FLUME-2431-1.patch
        11 kB
        Mike Percy

        Issue Links

          Activity

          Mike Percy created issue -
          Hide
          Mike Percy added a comment -

          Attaching initial patch for this feature.

          Show
          Mike Percy added a comment - Attaching initial patch for this feature.
          Mike Percy made changes -
          Field Original Value New Value
          Attachment FLUME-2431-1.patch [ 12657241 ]
          Mike Percy made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Mike Percy made changes -
          Remote Link This issue links to "Review Board (Web Link)" [ 16236 ]
          Mike Percy made changes -
          Attachment FLUME-2431-2.patch [ 12657246 ]
          Mike Percy made changes -
          Attachment FLUME-2431-3.patch [ 12657252 ]
          Hide
          Hari Shreedharan added a comment -

          +1. Looks good. Committing.

          Show
          Hari Shreedharan added a comment - +1. Looks good. Committing.
          Hide
          ASF subversion and git services added a comment -

          Commit 61e3b3881b406b4a75897342fa12e84ecb2bcd3c in flume's branch refs/heads/trunk from Hari Shreedharan
          [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=61e3b38 ]

          FLUME-2431. Add simple regex search-and-replace interceptor

          (Mike Percy via Hari)

          Show
          ASF subversion and git services added a comment - Commit 61e3b3881b406b4a75897342fa12e84ecb2bcd3c in flume's branch refs/heads/trunk from Hari Shreedharan [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=61e3b38 ] FLUME-2431 . Add simple regex search-and-replace interceptor (Mike Percy via Hari)
          Hide
          ASF subversion and git services added a comment -

          Commit 9b3a21836ad468403552fa32234acb763ef15208 in flume's branch refs/heads/flume-1.6 from Hari Shreedharan
          [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=9b3a218 ]

          FLUME-2431. Add simple regex search-and-replace interceptor

          (Mike Percy via Hari)

          Show
          ASF subversion and git services added a comment - Commit 9b3a21836ad468403552fa32234acb763ef15208 in flume's branch refs/heads/flume-1.6 from Hari Shreedharan [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=9b3a218 ] FLUME-2431 . Add simple regex search-and-replace interceptor (Mike Percy via Hari)
          Hide
          Hari Shreedharan added a comment -

          Committed! Thanks Mike!

          Show
          Hari Shreedharan added a comment - Committed! Thanks Mike!
          Hari Shreedharan made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Hudson added a comment -

          FAILURE: Integrated in flume-trunk #647 (See https://builds.apache.org/job/flume-trunk/647/)
          FLUME-2431. Add simple regex search-and-replace interceptor (harishreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=61e3b3881b406b4a75897342fa12e84ecb2bcd3c)

          • flume-ng-core/src/test/java/org/apache/flume/interceptor/TestSearchAndReplaceInterceptor.java
          • flume-ng-doc/sphinx/FlumeUserGuide.rst
          • flume-ng-configuration/src/main/java/org/apache/flume/Context.java
          • flume-ng-core/src/main/java/org/apache/flume/interceptor/SearchAndReplaceInterceptor.java
          • flume-ng-core/src/main/java/org/apache/flume/interceptor/InterceptorType.java
          Show
          Hudson added a comment - FAILURE: Integrated in flume-trunk #647 (See https://builds.apache.org/job/flume-trunk/647/ ) FLUME-2431 . Add simple regex search-and-replace interceptor (harishreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=61e3b3881b406b4a75897342fa12e84ecb2bcd3c ) flume-ng-core/src/test/java/org/apache/flume/interceptor/TestSearchAndReplaceInterceptor.java flume-ng-doc/sphinx/FlumeUserGuide.rst flume-ng-configuration/src/main/java/org/apache/flume/Context.java flume-ng-core/src/main/java/org/apache/flume/interceptor/SearchAndReplaceInterceptor.java flume-ng-core/src/main/java/org/apache/flume/interceptor/InterceptorType.java
          Hide
          Hudson added a comment -

          UNSTABLE: Integrated in Flume-trunk-hbase-98 #7 (See https://builds.apache.org/job/Flume-trunk-hbase-98/7/)
          FLUME-2431. Add simple regex search-and-replace interceptor (harishreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=61e3b3881b406b4a75897342fa12e84ecb2bcd3c)

          • flume-ng-core/src/test/java/org/apache/flume/interceptor/TestSearchAndReplaceInterceptor.java
          • flume-ng-core/src/main/java/org/apache/flume/interceptor/SearchAndReplaceInterceptor.java
          • flume-ng-doc/sphinx/FlumeUserGuide.rst
          • flume-ng-configuration/src/main/java/org/apache/flume/Context.java
          • flume-ng-core/src/main/java/org/apache/flume/interceptor/InterceptorType.java
          Show
          Hudson added a comment - UNSTABLE: Integrated in Flume-trunk-hbase-98 #7 (See https://builds.apache.org/job/Flume-trunk-hbase-98/7/ ) FLUME-2431 . Add simple regex search-and-replace interceptor (harishreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=61e3b3881b406b4a75897342fa12e84ecb2bcd3c ) flume-ng-core/src/test/java/org/apache/flume/interceptor/TestSearchAndReplaceInterceptor.java flume-ng-core/src/main/java/org/apache/flume/interceptor/SearchAndReplaceInterceptor.java flume-ng-doc/sphinx/FlumeUserGuide.rst flume-ng-configuration/src/main/java/org/apache/flume/Context.java flume-ng-core/src/main/java/org/apache/flume/interceptor/InterceptorType.java

            People

            • Assignee:
              Mike Percy
              Reporter:
              Mike Percy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development