Skip to content

NIFI-12163 Improve Syslog 5424 Line Handling#7835

Closed
exceptionfactory wants to merge 1 commit intoapache:mainfrom
exceptionfactory:NIFI-12163
Closed

NIFI-12163 Improve Syslog 5424 Line Handling#7835
exceptionfactory wants to merge 1 commit intoapache:mainfrom
exceptionfactory:NIFI-12163

Conversation

@exceptionfactory
Copy link
Contributor

Summary

NIFI-12163 Improves Syslog handling in the ParseSyslog5424 and Syslog5424Reader components with the elimination of unnecessary String to byte conversion.

Primary changes include streamlining the event parsing method to take a String instead of ByteBuffer created from a String. The supporting SyslogParser method accepts a String, so this approach avoids the intermediate conversion steps. Additional changes include providing the configured character set to the appropriate InputStreamReader, instead of having it default to platform encoding.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 21

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

- Eliminated unused parseEvent method signatures from StrictSyslog5424Parser in favor of a single String line method
- Eliminated intermediate conversion from String to byte array and back to String for Syslog Parser
@asfgit asfgit closed this in da4c6f6 Oct 4, 2023
@exceptionfactory exceptionfactory added the hacktoberfest-accepted Hacktoberfest Accepted label Oct 4, 2023
asfgit pushed a commit that referenced this pull request Oct 4, 2023
- Eliminated unused parseEvent method signatures from StrictSyslog5424Parser in favor of a single String line method
- Eliminated intermediate conversion from String to byte array and back to String for Syslog Parser

Signed-off-by: Joseph Witt <joewitt@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted Hacktoberfest Accepted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant