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:
ConfigurableComponent
,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 PropertyDescriptor
private Charset
static final PropertyDescriptor
private boolean
private StrictSyslog5424Parser
(package private) static final String
private RecordSchema
(package private) static final 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, ComponentLog logger) (package private) RecordSchema
protected AllowableValue
protected SchemaAccessStrategy
getSchemaAccessStrategy
(String strategy, SchemaRegistry schemaRegistry, PropertyContext context) protected List
<AllowableValue> protected List
<PropertyDescriptor> void
onEnabled
(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
-
RAW_MESSAGE_NAME
- See Also:
-
CHARSET
-
ADD_RAW
-
charset
-
parser
-
includeRaw
private volatile boolean includeRaw -
recordSchema
-
-
Constructor Details
-
Syslog5424Reader
public Syslog5424Reader()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptors
in classSchemaRegistryService
-
onEnabled
-
getSchemaAccessStrategyValues
- Overrides:
getSchemaAccessStrategyValues
in classSchemaRegistryService
-
getDefaultSchemaAccessStrategy
- Overrides:
getDefaultSchemaAccessStrategy
in classSchemaRegistryService
-
getSchemaAccessStrategy
protected SchemaAccessStrategy getSchemaAccessStrategy(String strategy, SchemaRegistry schemaRegistry, PropertyContext context) - Overrides:
getSchemaAccessStrategy
in classSchemaRegistryService
-
createRecordSchema
RecordSchema createRecordSchema() -
createAccessStrategy
-
createRecordReader
public RecordReader createRecordReader(Map<String, String> variables, InputStream in, long inputLength, ComponentLog logger) throws IOException, SchemaNotFoundException- Specified by:
createRecordReader
in interfaceRecordReaderFactory
- Throws:
IOException
SchemaNotFoundException
-