@EventDriven @SideEffectFree @SupportsBatching @InputRequirement(value=INPUT_REQUIRED) @Tags(value={"logs","cef","attributes","system","event","message"}) @CapabilityDescription(value="Parses the contents of a CEF formatted message and adds attributes to the FlowFile for headers and extensions of the parts of the CEF message.\nNote: This Processor expects CEF messages WITHOUT the syslog headers (i.e. starting at \"CEF:0\"") @WritesAttribute(attribute="cef.header.version",description="The version of the CEF message.") @WritesAttribute(attribute="cef.header.deviceVendor",description="The Device Vendor of the CEF message.") @WritesAttribute(attribute="cef.header.deviceProduct",description="The Device Product of the CEF message.") @WritesAttribute(attribute="cef.header.deviceVersion",description="The Device Version of the CEF message.") @WritesAttribute(attribute="cef.header.deviceEventClassId",description="The Device Event Class ID of the CEF message.") @WritesAttribute(attribute="cef.header.name",description="The name of the CEF message.") @WritesAttribute(attribute="cef.header.severity",description="The severity of the CEF message.") @WritesAttribute(attribute="cef.extension.*",description="The key and value generated by the parsing of the message.") @SeeAlso(value=ParseSyslog.class) public class ParseCEF extends AbstractProcessor
| Modifier and Type | Class and Description |
|---|---|
private class |
ParseCEF.MacAddressToStringSerializer |
protected static class |
ParseCEF.ValidateLocale |
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
ACCEPT_EMPTY_EXTENSIONS |
static PropertyDescriptor |
APPEND_RAW_MESSAGE_TO_JSON |
static PropertyDescriptor |
DATETIME_REPRESENTATION |
private static DateTimeFormatter |
dateTimeFormatter |
static String |
DESTINATION_ATTRIBUTES |
static String |
DESTINATION_CONTENT |
static PropertyDescriptor |
FIELDS_DESTINATION |
static PropertyDescriptor |
INCLUDE_CUSTOM_EXTENSIONS |
static String |
LOCAL_TZ |
private static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
(package private) static Relationship |
REL_FAILURE |
(package private) static Relationship |
REL_SUCCESS |
private SimpleDateFormat |
simpleDateFormat |
static PropertyDescriptor |
TIME_REPRESENTATION |
private String |
tzId |
static String |
UTC |
static PropertyDescriptor |
VALIDATE_DATA |
(package private) javax.validation.Validator |
validator |
| Constructor and Description |
|---|
ParseCEF() |
| Modifier and Type | Method and Description |
|---|---|
Set<Relationship> |
getRelationships() |
List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
OnScheduled(ProcessContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
private String |
prettyResult(Object entryValue,
String tzID) |
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate static final DateTimeFormatter dateTimeFormatter
private final SimpleDateFormat simpleDateFormat
private String tzId
private static final com.fasterxml.jackson.databind.ObjectMapper mapper
public static final String DESTINATION_CONTENT
public static final String DESTINATION_ATTRIBUTES
public static final PropertyDescriptor FIELDS_DESTINATION
public static final PropertyDescriptor APPEND_RAW_MESSAGE_TO_JSON
public static final PropertyDescriptor INCLUDE_CUSTOM_EXTENSIONS
public static final PropertyDescriptor ACCEPT_EMPTY_EXTENSIONS
public static final PropertyDescriptor VALIDATE_DATA
public static final String UTC
public static final String LOCAL_TZ
public static final PropertyDescriptor TIME_REPRESENTATION
public static final PropertyDescriptor DATETIME_REPRESENTATION
static final Relationship REL_FAILURE
static final Relationship REL_SUCCESS
final javax.validation.Validator validator
public List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessor@OnScheduled public void OnScheduled(ProcessContext context)
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.