Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4702

Grok Record Reader applies regex to each line twice in some situations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • Extensions
    • None

    Description

      When using the Grok Record Reader, it reads the next line from the stream to check if it needs to be appended to the record, is the start of a stack trace, etc. When this is done, if the next line matches the configured pattern, it is stored as 'nextLine' but we don't store the Map that is obtained from calling captures(). This means that the next iteration of nextRecord() must re-evaluate the regexes against 'nextLine'. We should instead just keep the Map as a member variable.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: