@Tags(value={"syslog 5424","syslog","logs","logfiles","parse","text","record","reader"}) @CapabilityDescription(value="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
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
ADD_RAW |
static PropertyDescriptor |
CHARSET |
private static boolean |
includeRaw |
private StrictSyslog5424Parser |
parser |
(package private) static String |
RAW_MESSAGE_NAME |
private RecordSchema |
recordSchema |
(package private) static AllowableValue |
RFC_5424_SCHEMA |
static String |
RFC_5424_SCHEMA_NAME |
schemaAccessStrategy
Constructor and Description |
---|
Syslog5424Reader() |
Modifier and Type | Method and Description |
---|---|
private SchemaAccessStrategy |
createAccessStrategy() |
RecordReader |
createRecordReader(Map<String,String> variables,
InputStream in,
long inputLength,
ComponentLog logger) |
(package private) static RecordSchema |
createRecordSchema() |
protected AllowableValue |
getDefaultSchemaAccessStrategy() |
protected SchemaAccessStrategy |
getSchemaAccessStrategy(String strategy,
SchemaRegistry schemaRegistry,
PropertyContext context) |
protected List<AllowableValue> |
getSchemaAccessStrategyValues() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onEnabled(ConfigurationContext context) |
buildStrategyProperty, customValidate, getConfigurationContext, getSchema, getSchema, getSchemaAccessStrategy, getSchemaAcessStrategyDescriptor, getSuppliedSchemaFields, storeSchemaAccessStrategy
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabled
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createRecordReader
initialize, isStateful
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final String RFC_5424_SCHEMA_NAME
static final AllowableValue RFC_5424_SCHEMA
static final String RAW_MESSAGE_NAME
public static final PropertyDescriptor CHARSET
public static final PropertyDescriptor ADD_RAW
private volatile StrictSyslog5424Parser parser
private static volatile boolean includeRaw
private volatile RecordSchema recordSchema
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class SchemaRegistryService
@OnEnabled public void onEnabled(ConfigurationContext context)
protected List<AllowableValue> getSchemaAccessStrategyValues()
getSchemaAccessStrategyValues
in class SchemaRegistryService
protected AllowableValue getDefaultSchemaAccessStrategy()
getDefaultSchemaAccessStrategy
in class SchemaRegistryService
protected SchemaAccessStrategy getSchemaAccessStrategy(String strategy, SchemaRegistry schemaRegistry, PropertyContext context)
getSchemaAccessStrategy
in class SchemaRegistryService
static RecordSchema createRecordSchema()
private SchemaAccessStrategy createAccessStrategy()
public RecordReader createRecordReader(Map<String,String> variables, InputStream in, long inputLength, ComponentLog logger) throws IOException, SchemaNotFoundException
createRecordReader
in interface RecordReaderFactory
IOException
SchemaNotFoundException
Copyright © 2023 Apache NiFi Project. All rights reserved.