Constructor
new CEF(optionsopt)
Construct a new CEF formatting object with user options
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
Options object
Properties
|
Requires:
- module:moment
Requires
- module:moment
Members
(private) constructor__
deviceEventClassId :string
Type:
- string
deviceProduct :string
Type:
- string
deviceVendor :string
Type:
- string
deviceVersion :string
Type:
- string
extensions :object
Type:
- object
name :string
Type:
- string
(private) server
severity :string
Type:
- string
Methods
buildMessage() → {Promise}
Build a CEF formated string
Returns:
- String with formated message
- Type
- Promise
send(optionsopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
Syslog |
<optional> |
false
|
A Syslog server connection that should be used to send messages directly from this class. @see SyslogPro~Syslog |
validate() → {Promise}
Validate this CEF object
Throws:
-
- First element to fail validation
- Type
- Error
Returns:
- True if validated
- Type
- Promise