Back to Beats

CEF module [filebeat-module-cef]

docs/reference/filebeat/filebeat-module-cef.md

9.4.07.7 KB
Original Source

% This file is generated! See filebeat/scripts/mage/docs.go

CEF module [filebeat-module-cef]

:::::{admonition} Prefer to use {{agent}} for this use case? Refer to the Elastic Integrations documentation.

::::{dropdown} Learn more {{agent}} is a single, unified way to add monitoring for logs, metrics, and other types of data to a host. It can also protect hosts from security threats, query data from operating systems, forward data from remote services or hardware, and more. Refer to the documentation for a detailed comparison of {{beats}} and {{agent}}.

::::

:::::

This is a module for receiving Common Event Format (CEF) data over Syslog. When messages are received over the syslog protocol the syslog input will parse the header and set the timestamp value. Then the decode_cef processor is applied to parse the CEF encoded data. The decoded data is written into a cef object field. Lastly any Elastic Common Schema (ECS) fields that can be populated with the CEF data are populated.

::::{tip} Read the quick start to learn how to configure and run modules. ::::

Configure the module [configuring-cef-module]

You can further refine the behavior of the cef module by specifying variable settings in the modules.d/cef.yml file, or overriding settings at the command line.

You must enable at least one fileset in the module. Filesets are disabled by default.

Variable settings [cef-settings]

Each fileset has separate variable settings for configuring the behavior of the module. If you don’t specify variable settings, the cef module uses the defaults.

For advanced use cases, you can also override input settings. See Override input settings.

::::{tip} When you specify a setting at the command line, remember to prefix the setting with the module name, for example, cef.log.var.paths instead of log.var.paths. ::::

log fileset settings [_log_fileset_settings_2]

var.syslog_host : The interface to listen to UDP based syslog traffic. Defaults to localhost. Set to 0.0.0.0 to bind to all available interfaces.

var.syslog_port : The UDP port to listen for syslog traffic. Defaults to 9003

::::{note} Ports below 1024 require Filebeat to run as root. ::::

var.tags : A list of tags to include in events. Including forwarded indicates that the events did not originate on this host and causes host.name to not be added to events. Defaults to [cef, forwarded].

var.timezone : IANA time zone name (e.g. America/New_York) or fixed time offset (e.g. +0200) to use when parsing times from the CEF message that do not contain a time zone. Local may be specified to use the machine’s local time zone. Defaults to UTC.

Forcepoint NGFW Security Management Center [_forcepoint_ngfw_security_management_center]

This module will process CEF data from Forcepoint NGFW Security Management Center (SMC). In the SMC configure the logs to be forwarded to the address set in var.syslog_host in format CEF and service UDP on var.syslog_port. Instructions can be found in KB 15002 for configuring the SMC. Testing was done with CEF logs from SMC version 6.6.1 and custom string mappings were taken from CEF Connector Configuration Guide dated December 5, 2011.

Check Point devices [_check_point_devices]

This module will parse CEF data form Check Point devices as documented in Log Exporter CEF Field Mappings.

Check Point CEF extensions are mapped as follows:

CEF ExtensionCEF Label valueECS FieldsNon-ECS Field
cp_app_risk-event.risk_scorecheckpoint.app_risk
cp_severity-event.severitycheckpoint.severity
baseEventCount--checkpoint.event_count
deviceExternalId-observer.type-
deviceFacility-observer.type-
deviceInboundInterface-observer.ingress.interface.name-
deviceOutboundInterface-observer.egress.interface.name-
externalId--checkpoint.uuid
fileHash-file.hash.{md5,sha1}-
reason--checkpoint.termination_reason
requestCookies--checkpoint.cookie
sourceNtDomain-dns.question.name-
Signature-vulnerability.id-
Recipient-destination.user.email-
Sender-source.user.email-
deviceCustomFloatingPoint1update versionobserver.version-
deviceCustomIPv6Address2source ipv6 addresssource.ip-
deviceCustomIPv6Address3destination ipv6 addressdestination.ip-
deviceCustomNumber1elapsed time in secondsevent.duration-
email recipients number-checkpoint.email_recipients_num
payloadnetwork.bytes-
deviceCustomNumber2icmp type-checkpoint.icmp_type
duration in secondsevent.duration-
deviceCustomNumber3icmp code-checkpoint.icmp_code
deviceCustomString1connectivity state-checkpoint.connectivity_state
application rule namerule.name-
threat prevention rule namerule.name-
voip log type-checkpoint.voip_log_type
dlp rule namerule.name-
email id-checkpoint.email_id
deviceCustomString2category-checkpoint.category
email subject-checkpoint.email_subject
sensor mode-checkpoint.sensor_mode
protection id-checkpoint.protection_id
scan invoke type-checkpoint.integrity_av_invoke_type
update status-checkpoint.update_status
peer gateway-checkpoint.peer_gateway
categoriesrule.category-
deviceCustomString6application namenetwork.application-
virus name-checkpoint.virus_name
malware name-checkpoint.spyware_name
malware family-checkpoint.malware_family
deviceCustomString3user groupgroup.name-
incident extension-checkpoint.incident_extension
protection type-checkpoint.protection_type
email spool id-checkpoint.email_spool_id
identity type-checkpoint.identity_type
deviceCustomString4malware status-checkpoint.spyware_status
threat prevention rule idrule.id-
scan result-checkpoint.scan_result
tcp flags-checkpoint.tcp_flags
destination osos.name-
protection name-checkpoint.protection_name
email control-checkpoint.email_control
frequency-checkpoint.frequency
user response-checkpoint.user_status
deviceCustomString5matched categoryrule.category-
vlan idnetwork.vlan.id-
authentication method-checkpoint.auth_method
email session id-checkpoint.email_session_id
deviceCustomDate2subscription expiration-checkpoint.subs_exp
deviceFlexNumber1confidence-checkpoint.confidence_level
deviceFlexNumber2performance impact-checkpoint.performance_impact
destination phone number-checkpoint.dst_phone_number
flexString1application signature id-checkpoint.app_sig_id
flexString2malware actionrule.description-
attack informationevent.action-
rule_uid-rule.uuid-
ifname-observer.ingress.interface.name-
inzone-observer.ingress.zone-
outzone-observer.egress.zone-
product-observer.product-

Fields [_fields]

For a description of each field in the module, see the exported fields section.