Malthe Borch created NIFI-7837: ---------------------------------- Summary: Add MDC-mode to LogAttribute Key: NIFI-7837 URL: https://issues.apache.org/jira/browse/NIFI-7837 Project: Apache NiFi Issue Type: Improvement Reporter: Malthe Borch
The LogAttribute processor creates a custom-formatted text message out of the attribute and optionally content payload. An optional JSON mode would go some way in making this more accessible to a consumer, however some logging sinks such as [Azure Application Insights|https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-trace-logs] support properties (or _custom dimensions_) that are both more ergonomic and performant. Logback has support for [Mapped Diagnostics Context|http://logback.qos.ch/manual/mdc.html] (MDC) and again, some logging sinks turn that context (a list of key/value entries) into properties. Supporting MDC as a logging mode in addition to the current custom-formatted message and possibly a JSON mode as well would go a long way in enabling better logging from NiFi flows. -- This message was sent by Atlassian Jira (v8.3.4#803005)