Class LogAttribute
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.standard.LogAttribute
- All Implemented Interfaces:
ConfigurableComponent
,Processor
@SideEffectFree
@SupportsBatching(defaultDuration=TWENTY_FIVE_MILLIS)
@Tags({"attributes","logging"})
@InputRequirement(INPUT_REQUIRED)
@CapabilityDescription("Emits attributes of the FlowFile at the specified log level")
public class LogAttribute
extends AbstractProcessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
protected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyDescriptor
static final PropertyDescriptor
static final PropertyDescriptor
static final PropertyDescriptor
static final PropertyDescriptor
static final String
(package private) static final PropertyDescriptor
static final PropertyDescriptor
static final PropertyDescriptor
static final PropertyDescriptor
static final long
static final PropertyDescriptor
private static final AllowableValue
private static final AllowableValue
static final Relationship
private Set
<Relationship> private List
<PropertyDescriptor> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributesToLog
(Set<String> flowFileAttrKeys, ProcessContext context) protected List
<PropertyDescriptor> protected void
init
(ProcessorInitializationContext context) void
onTrigger
(ProcessContext context, ProcessSession session) protected String
processFlowFile
(ComponentLog logger, LogAttribute.DebugLevels logLevel, FlowFile flowFile, ProcessSession session, ProcessContext context) private void
transferChunk
(ProcessSession session) Methods inherited from class org.apache.nifi.processor.AbstractProcessor
onTrigger
Methods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
Methods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
OUTPUT_FORMAT_LINE_PER_ATTRIBUTE
-
OUTPUT_FORMAT_SINGLE_LINE
-
LOG_LEVEL
-
ATTRIBUTES_TO_LOG_CSV
-
ATTRIBUTES_TO_LOG_REGEX
-
ATTRIBUTES_TO_IGNORE_CSV
-
ATTRIBUTES_TO_IGNORE_REGEX
-
OUTPUT_FORMAT
-
LOG_PAYLOAD
-
LOG_FLOWFILE_PROPERTIES
-
LOG_PREFIX
-
CHARSET
-
FIFTY_DASHES
- See Also:
-
ONE_MB
public static final long ONE_MB- See Also:
-
relationships
-
supportedDescriptors
-
REL_SUCCESS
-
-
Constructor Details
-
LogAttribute
public LogAttribute()
-
-
Method Details
-
init
- Overrides:
init
in classAbstractSessionFactoryProcessor
-
getRelationships
- Specified by:
getRelationships
in interfaceProcessor
- Overrides:
getRelationships
in classAbstractSessionFactoryProcessor
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptors
in classAbstractConfigurableComponent
-
processFlowFile
protected String processFlowFile(ComponentLog logger, LogAttribute.DebugLevels logLevel, FlowFile flowFile, ProcessSession session, ProcessContext context) -
getAttributesToLog
-
transferChunk
-
onTrigger
- Specified by:
onTrigger
in classAbstractProcessor
-