Package org.apache.nifi.syslog
Class Syslog5424Reader
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.serialization.SchemaRegistryService
org.apache.nifi.syslog.Syslog5424Reader
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent
,org.apache.nifi.controller.ControllerService
,RecordReaderFactory
@Tags({"syslog 5424","syslog","logs","logfiles","parse","text","record","reader"})
@CapabilityDescription("Provides a mechanism for reading RFC 5424 compliant Syslog data, such as log files, and structuring the data so that it can be processed.")
public class Syslog5424Reader
extends SchemaRegistryService
implements RecordReaderFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptor
private Charset
static final org.apache.nifi.components.PropertyDescriptor
private boolean
private StrictSyslog5424Parser
(package private) static final String
private RecordSchema
(package private) static final org.apache.nifi.components.AllowableValue
static final String
Fields inherited from class org.apache.nifi.serialization.SchemaRegistryService
schemaAccessStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SchemaAccessStrategy
createRecordReader
(Map<String, String> variables, InputStream in, long inputLength, org.apache.nifi.logging.ComponentLog logger) (package private) RecordSchema
protected org.apache.nifi.components.AllowableValue
protected SchemaAccessStrategy
getSchemaAccessStrategy
(String strategy, SchemaRegistry schemaRegistry, org.apache.nifi.context.PropertyContext context) protected List
<org.apache.nifi.components.AllowableValue> protected List
<org.apache.nifi.components.PropertyDescriptor> void
onEnabled
(org.apache.nifi.controller.ConfigurationContext context) Methods inherited from class org.apache.nifi.serialization.SchemaRegistryService
buildStrategyProperty, customValidate, getConfigurationContext, getSchema, getSchema, getSchemaAccessStrategy, getSchemaAccessStrategyDescriptor, getSuppliedSchemaFields, migrateProperties, storeSchemaAccessStrategy
Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabled
Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, 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
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
Methods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
Methods inherited from interface org.apache.nifi.serialization.RecordReaderFactory
createRecordReader
-
Field Details
-
RFC_5424_SCHEMA_NAME
- See Also:
-
RFC_5424_SCHEMA
static final org.apache.nifi.components.AllowableValue RFC_5424_SCHEMA -
RAW_MESSAGE_NAME
- See Also:
-
CHARSET
public static final org.apache.nifi.components.PropertyDescriptor CHARSET -
ADD_RAW
public static final org.apache.nifi.components.PropertyDescriptor ADD_RAW -
charset
-
parser
-
includeRaw
private volatile boolean includeRaw -
recordSchema
-
-
Constructor Details
-
Syslog5424Reader
public Syslog5424Reader()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptors
in classSchemaRegistryService
-
onEnabled
@OnEnabled public void onEnabled(org.apache.nifi.controller.ConfigurationContext context) -
getSchemaAccessStrategyValues
- Overrides:
getSchemaAccessStrategyValues
in classSchemaRegistryService
-
getDefaultSchemaAccessStrategy
protected org.apache.nifi.components.AllowableValue getDefaultSchemaAccessStrategy()- Overrides:
getDefaultSchemaAccessStrategy
in classSchemaRegistryService
-
getSchemaAccessStrategy
protected SchemaAccessStrategy getSchemaAccessStrategy(String strategy, SchemaRegistry schemaRegistry, org.apache.nifi.context.PropertyContext context) - Overrides:
getSchemaAccessStrategy
in classSchemaRegistryService
-
createRecordSchema
RecordSchema createRecordSchema() -
createAccessStrategy
-
createRecordReader
public RecordReader createRecordReader(Map<String, String> variables, InputStream in, long inputLength, org.apache.nifi.logging.ComponentLog logger) throws IOException, SchemaNotFoundException- Specified by:
createRecordReader
in interfaceRecordReaderFactory
- Throws:
IOException
SchemaNotFoundException
-