You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Koji Kawamura (JIRA)" <ji...@apache.org> on 2018/11/05 02:50:00 UTC

[jira] [Commented] (NIFI-5785) LogAttribute processor overrides user input on attributes to log

    [ https://issues.apache.org/jira/browse/NIFI-5785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16674616#comment-16674616 ] 

Koji Kawamura commented on NIFI-5785:
-------------------------------------

[~rthomasson] Thanks for sharing your feedback. I looked at LogAttribute source code and found those three you mentioned are logged always. There's no configuration to suppress those currently. 
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/LogAttribute.java#L197

As for the default Regex, you don't have to clear "Attributes to Log by Regular Expression" field to specify attributes to log. As the property description says, "Attributes to Log" and "Attributes to Log by Regular Expression" are applied as AND condition. The default Regex ".*" matches any attribute name.

If a processor property has its default value, you can not clear it. Even if you clear the default value and hit 'APPLY' button, the default value remains. This is not a processor specific behavior, every processor property having default value works like this.

Do you want to hide those standard FlowFile attributes? Then I'd suggest to update this JIRA title (or close this and create new one) to something like "Add 'Log Standard Attributes' to LogAttribute". A new property 'Apply Attribute name filters to Standard Attributes' (defaults to false, to preserve current behavior) can be an alternative approach.

> LogAttribute processor overrides user input on attributes to log
> ----------------------------------------------------------------
>
>                 Key: NIFI-5785
>                 URL: https://issues.apache.org/jira/browse/NIFI-5785
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.8.0
>            Reporter: Randy Thomasson
>            Priority: Minor
>
> If a user desires to log only specific attributes by listing them in the "Attributes to Log" field and then deletes the default ".*" in the "Attributes to Log by Regular Expression" field, the LogAttribute processor ignores the input and logs additional attributes anyway, specifically:          entryDate
>   lineageStartDate
>   fileSize
> Also, the next time the user returns to configure the processor, the default .* is back in the "Attributes to Log by Regular Expression" field.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)