@Tags(value={"syslog","logs","logfiles","parse","text","record","reader"}) @CapabilityDescription(value="Attempts to parses the contents of a Syslog message in accordance to RFC5424 and RFC3164. In the case of RFC5424 formatted messages, structured data is not supported, and will be returned as part of the message.Note: Be mindfull that RFC3164 is informational and a wide range of different implementations are present in the wild.") public class SyslogReader extends SchemaRegistryService implements RecordReaderFactory
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
ADD_RAW |
static PropertyDescriptor |
CHARSET |
(package private) static AllowableValue |
GENERIC_SYSLOG_SCHEMA |
static String |
GENERIC_SYSLOG_SCHEMA_NAME |
private static boolean |
includeRaw |
private SyslogParser |
parser |
(package private) static String |
RAW_MESSAGE_NAME |
private RecordSchema |
recordSchema |
schemaAccessStrategy
Constructor and Description |
---|
SyslogReader() |
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 GENERIC_SYSLOG_SCHEMA_NAME
static final AllowableValue GENERIC_SYSLOG_SCHEMA
static final String RAW_MESSAGE_NAME
public static final PropertyDescriptor CHARSET
public static final PropertyDescriptor ADD_RAW
private volatile SyslogParser 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.