You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by trixpan <gi...@git.apache.org> on 2017/03/31 15:00:48 UTC

[GitHub] nifi pull request #1639: NIFI-1939 - Correct issue where ParseSyslog was una...

GitHub user trixpan opened a pull request:

    https://github.com/apache/nifi/pull/1639

    NIFI-1939 - Correct issue where ParseSyslog was unable to parse RFC31\u2026

    \u202664 messages containg an IPv6 address as source
    
    Thank you for submitting a contribution to Apache NiFi.
    
    In order to streamline the review of the contribution we ask you
    to ensure the following steps have been taken:
    
    ### For all changes:
    - [X] Is there a JIRA ticket associated with this PR? Is it referenced 
         in the commit message?
    
    - [X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
    
    - [X] Has your PR been rebased against the latest commit within the target branch (typically master)?
    
    - [X] Is your initial contribution a single, squashed commit?
    
    ### For code changes:
    - [X] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
    - [X] Have you written or updated unit tests to verify your changes?
    - [X] ~~~If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?~~~ 
    - [X] ~~~If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?~~~
    - [X] ~~~If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?~~~
    - [X] ~~~If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?~~~
    
    ### For documentation related changes:
    - [X] ~~~Have you ensured that format looks appropriate for the output in which it is rendered?~~~
    
    ### Note:
    Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/trixpan/nifi NIFI-1939

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/1639.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1639
    
----
commit c8e04c4ec1870b2b16df246e6eaf46891c39f45b
Author: Andre F de Miranda <tr...@users.noreply.github.com>
Date:   2017-03-31T14:57:50Z

    NIFI-1939 - Correct issue where ParseSyslog was unable to parse RFC3164 messages containg an IPv6 address as source

----


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

[GitHub] nifi pull request #1639: NIFI-1939 - Correct issue where ParseSyslog was una...

Posted by trixpan <gi...@git.apache.org>.
Github user trixpan commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1639#discussion_r114039631
  
    --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ParseSyslog.java ---
    @@ -57,13 +57,17 @@
     @SupportsBatching
     @InputRequirement(Requirement.INPUT_REQUIRED)
     @Tags({"logs", "syslog", "attributes", "system", "event", "message"})
    -@CapabilityDescription("Parses the contents of a Syslog message and adds attributes to the FlowFile for each of the parts of the Syslog message")
    +@CapabilityDescription("Attempts to parses the contents of a Syslog message in accordance to RFC5424 and RFC3164 " +
    +        "formats and adds attributes to the FlowFile for each of the parts of the Syslog message." +
    +        "Note: Be mindfull that RFC3164 is informational and a wide range of different implementations are present in" +
    +        " the wild. If messages fail parsing, considering using RFC5424 or using a generic parsin processors such as " +
    +        "ExtractGrok.")
     @WritesAttributes({@WritesAttribute(attribute = "syslog.priority", description = "The priority of the Syslog message."),
         @WritesAttribute(attribute = "syslog.severity", description = "The severity of the Syslog message derived from the priority."),
         @WritesAttribute(attribute = "syslog.facility", description = "The facility of the Syslog message derived from the priority."),
         @WritesAttribute(attribute = "syslog.version", description = "The optional version from the Syslog message."),
         @WritesAttribute(attribute = "syslog.timestamp", description = "The timestamp of the Syslog message."),
    -    @WritesAttribute(attribute = "syslog.hostname", description = "The hostname of the Syslog message."),
    +    @WritesAttribute(attribute = "syslog.hostname", description = "The hostname or IP address of the Syslog message."),
    --- End diff --
    
    good call. fixed


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

[GitHub] nifi pull request #1639: NIFI-1939 - Correct issue where ParseSyslog was una...

Posted by bbende <gi...@git.apache.org>.
Github user bbende commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1639#discussion_r113979345
  
    --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ParseSyslog.java ---
    @@ -57,13 +57,17 @@
     @SupportsBatching
     @InputRequirement(Requirement.INPUT_REQUIRED)
     @Tags({"logs", "syslog", "attributes", "system", "event", "message"})
    -@CapabilityDescription("Parses the contents of a Syslog message and adds attributes to the FlowFile for each of the parts of the Syslog message")
    +@CapabilityDescription("Attempts to parses the contents of a Syslog message in accordance to RFC5424 and RFC3164 " +
    +        "formats and adds attributes to the FlowFile for each of the parts of the Syslog message." +
    +        "Note: Be mindfull that RFC3164 is informational and a wide range of different implementations are present in" +
    +        " the wild. If messages fail parsing, considering using RFC5424 or using a generic parsin processors such as " +
    --- End diff --
    
    Minor typo on 'parsin'


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

[GitHub] nifi issue #1639: NIFI-1939 - Correct issue where ParseSyslog was unable to ...

Posted by bbende <gi...@git.apache.org>.
Github user bbende commented on the issue:

    https://github.com/apache/nifi/pull/1639
  
    @trixpan I'll take a look when I get some free time, have a few other things going on at the moment.


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

[GitHub] nifi pull request #1639: NIFI-1939 - Correct issue where ParseSyslog was una...

Posted by bbende <gi...@git.apache.org>.
Github user bbende commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1639#discussion_r113979520
  
    --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ParseSyslog.java ---
    @@ -57,13 +57,17 @@
     @SupportsBatching
     @InputRequirement(Requirement.INPUT_REQUIRED)
     @Tags({"logs", "syslog", "attributes", "system", "event", "message"})
    -@CapabilityDescription("Parses the contents of a Syslog message and adds attributes to the FlowFile for each of the parts of the Syslog message")
    +@CapabilityDescription("Attempts to parses the contents of a Syslog message in accordance to RFC5424 and RFC3164 " +
    +        "formats and adds attributes to the FlowFile for each of the parts of the Syslog message." +
    +        "Note: Be mindfull that RFC3164 is informational and a wide range of different implementations are present in" +
    +        " the wild. If messages fail parsing, considering using RFC5424 or using a generic parsin processors such as " +
    +        "ExtractGrok.")
     @WritesAttributes({@WritesAttribute(attribute = "syslog.priority", description = "The priority of the Syslog message."),
         @WritesAttribute(attribute = "syslog.severity", description = "The severity of the Syslog message derived from the priority."),
         @WritesAttribute(attribute = "syslog.facility", description = "The facility of the Syslog message derived from the priority."),
         @WritesAttribute(attribute = "syslog.version", description = "The optional version from the Syslog message."),
         @WritesAttribute(attribute = "syslog.timestamp", description = "The timestamp of the Syslog message."),
    -    @WritesAttribute(attribute = "syslog.hostname", description = "The hostname of the Syslog message."),
    +    @WritesAttribute(attribute = "syslog.hostname", description = "The hostname or IP address of the Syslog message."),
    --- End diff --
    
    Should we update this on ListenSyslog as well since the same parsing will be used there? 


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

[GitHub] nifi pull request #1639: NIFI-1939 - Correct issue where ParseSyslog was una...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/nifi/pull/1639


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

[GitHub] nifi issue #1639: NIFI-1939 - Correct issue where ParseSyslog was unable to ...

Posted by trixpan <gi...@git.apache.org>.
Github user trixpan commented on the issue:

    https://github.com/apache/nifi/pull/1639
  
    @bbende - would you be able to have a look on this one?
    
    Cheers


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