You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2025/09/18 17:57:00 UTC
[jira] [Created] (NIFI-14991) Add Process Group Context Attributes to Component Logs
David Handermann created NIFI-14991:
---------------------------------------
Summary: Add Process Group Context Attributes to Component Logs
Key: NIFI-14991
URL: https://issues.apache.org/jira/browse/NIFI-14991
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework
Reporter: David Handermann
Assignee: David Handermann
The standard implementation of the {{ComponentLog}} wraps an SLF4J Logger and provides Component Identifier information for each message. The associated Logging Context has access to the Grouped Component instance with Process Group to support optional logging selection at the Process Group level. For structured logging encoders such as JSON, additional context information can be provided to logging events using Key Value Pairs or Message Diagnostic Context. With the Process Group available in the Logging Context, the standard Component Log implementation should be updated to add context information associated with the Process Group:
* Process Group Identifier
* Process Group Name
* Process Group Path
This providing this information makes it available to output encoders, without necessarily adding it to the default logging pattern layout. This approach should retain existing log message output, but support additional options for including this context information in custom pattern layouts or encoder configuration.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)