Class SplunkEvent
java.lang.Object
org.apache.camel.component.splunk.event.SplunkEvent
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA device-specific classification provided as part of the event.static final StringA device-specific classification provided as part of the event.static final StringThe free-form description of a particular event.static final StringThe name of a given DHCP pool on a DHCP server.static final StringThe amount of time the event lasted.static final StringThe fully qualified domain name of the device transmitting or recording the log record.static final StringThe IPv4 address of the device reporting the event.static final StringThe IPv6 address of the device reporting the event.static final StringThe free-form description of the device's physical location.static final StringThe MAC (layer 2) address of the device reporting the event.static final StringThe Windows NT domain of the device recording or transmitting the event.static final StringThe Windows NT host name of the device recording or transmitting the event.static final StringTime at which the device recorded the event.static final StringThe event's specified end time.static final StringA unique identifier that identifies the event.static final StringThe length of the datagram, event, message, or packet.static final StringThe log-level that was set on the device and recorded in the event.static final StringThe name of the event as reported by the device.static final StringAn integer assigned by the device operating system to the process creating the record.static final StringAn environment-specific assessment of the event's importance, based on elements such as event severity, business function of the affected system, or other locally defined variables.static final StringThe product that generated the event.static final StringThe version of the product that generated the event.static final StringThe result root cause, such as connection refused, timeout, crash, and so on.static final StringThe action result.static final StringThe severity (or priority) of an event as reported by the originating device.static final StringThe event's specified start time.static final StringThe transaction identifier.static final StringA uniform record locator (a web address, in other words) included in a record.static final StringThe vendor who made the product that generated the event.static final StringEvent break delimiterstatic final StringThe name of the installed update. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorSplunkEvent(String eventName, String eventID) Constructor to create a generic event with the default formatSplunkEvent(String eventName, String eventID, boolean useInternalDate, boolean quoteValues) Constructor to create a generic eventSplunkEvent(Map<String, String> data) A Constructor to load data from a MapSplunkEvent(SplunkEvent splunkEvent) A Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a key value pairvoidAdd a key value pairvoidAdd a key value pairvoidAdd a key value pairvoidAdd a key value pairvoidAdd a key value pairvoidAdd a key value pairvoidaddThrowable(Throwable throwable) Utility method for formatting Throwable,Error,Exception objects in a more linear and Splunk friendly manner than printStackTracevoidaddThrowable(Throwable throwable, int stackTraceDepth) Utility method for formatting Throwable,Error,Exception objects in a more linear and Splunk friendly manner than printStackTracevoidsetCommonCategory(String commonCategory) voidsetCommonCount(String commonCount) voidsetCommonDesc(String commonDesc) voidsetCommonDhcpPool(String commonDhcpPool) voidsetCommonDuration(long commonDuration) voidsetCommonDvcHost(String commonDvcHost) voidsetCommonDvcIp(String commonDvcIp) voidsetCommonDvcIp6(String commonDvcIp6) voidsetCommonDvcLocation(String commonDvcLocation) voidsetCommonDvcMac(String commonDvcMac) voidsetCommonDvcNtDomain(String commonDvcNtDomain) voidsetCommonDvcNtHost(String commonDvcNtHost) voidsetCommonDvcTime(long commonDvcTime) voidsetCommonEndTime(long commonEndTime) voidsetCommonEventId(long commonEventId) voidsetCommonLength(long commonLength) voidsetCommonLogLevel(String commonLogLevel) voidsetCommonName(String commonName) voidsetCommonPid(long commonPid) voidsetCommonPriority(long commonPriority) voidsetCommonProduct(String commonProduct) voidsetCommonProductVersion(long commonProductVersion) voidsetCommonReason(String commonReason) voidsetCommonResult(String commonResult) voidsetCommonSeverity(String commonSeverity) voidsetCommonStartTime(long commonStartTime) voidsetCommonTransactionId(String commonTransactionId) voidsetCommonUrl(String commonUrl) voidsetCommonVendor(String commonVendor) voidsetUpdatePackage(String updatePackage) toString()return the completed event message
-
Field Details
-
COMMON_CATEGORY
A device-specific classification provided as part of the event.- See Also:
-
COMMON_COUNT
A device-specific classification provided as part of the event.- See Also:
-
COMMON_DESC
The free-form description of a particular event.- See Also:
-
COMMON_DHCP_POOL
The name of a given DHCP pool on a DHCP server.- See Also:
-
COMMON_DURATION
The amount of time the event lasted.- See Also:
-
COMMON_DVC_HOST
The fully qualified domain name of the device transmitting or recording the log record.- See Also:
-
COMMON_DVC_IP
The IPv4 address of the device reporting the event.- See Also:
-
COMMON_DVC_IP6
The IPv6 address of the device reporting the event.- See Also:
-
COMMON_DVC_LOCATION
The free-form description of the device's physical location.- See Also:
-
COMMON_DVC_MAC
The MAC (layer 2) address of the device reporting the event.- See Also:
-
COMMON_DVC_NT_DOMAIN
The Windows NT domain of the device recording or transmitting the event.- See Also:
-
COMMON_DVC_NT_HOST
The Windows NT host name of the device recording or transmitting the event.- See Also:
-
COMMON_DVC_TIME
Time at which the device recorded the event.- See Also:
-
COMMON_END_TIME
The event's specified end time.- See Also:
-
COMMON_EVENT_ID
A unique identifier that identifies the event. This is unique to the reporting device.- See Also:
-
COMMON_LENGTH
The length of the datagram, event, message, or packet.- See Also:
-
COMMON_LOG_LEVEL
The log-level that was set on the device and recorded in the event.- See Also:
-
COMMON_NAME
The name of the event as reported by the device. The name should not contain information that's already being parsed into other fields from the event, such as IP addresses.- See Also:
-
COMMON_PID
An integer assigned by the device operating system to the process creating the record.- See Also:
-
COMMON_PRIORITY
An environment-specific assessment of the event's importance, based on elements such as event severity, business function of the affected system, or other locally defined variables.- See Also:
-
COMMON_PRODUCT
The product that generated the event.- See Also:
-
COMMON_PRODUCT_VERSION
The version of the product that generated the event.- See Also:
-
COMMON_REASON
The result root cause, such as connection refused, timeout, crash, and so on.- See Also:
-
COMMON_RESULT
The action result. Often is a binary choice: succeeded and failed, allowed and denied, and so on.- See Also:
-
COMMON_SEVERITY
The severity (or priority) of an event as reported by the originating device.- See Also:
-
COMMON_START_TIME
The event's specified start time.- See Also:
-
COMMON_TRANSACTION_ID
The transaction identifier.- See Also:
-
COMMON_URL
A uniform record locator (a web address, in other words) included in a record.- See Also:
-
COMMON_VENDOR
The vendor who made the product that generated the event.- See Also:
-
LINEBREAK
Event break delimiter- See Also:
-
UPDATE_PACKAGE
The name of the installed update.- See Also:
-
-
Constructor Details
-
SplunkEvent
A Constructor to load data from a Map- Parameters:
data- the map
-
SplunkEvent
A Copy constructor -
SplunkEvent
Constructor to create a generic event- Parameters:
eventName- the event nameeventID- the event iduseInternalDate- whether or not to add a date to the event stringquoteValues- whether or not to put quotes around values
-
SplunkEvent
Constructor to create a generic event with the default format- Parameters:
eventName- the event nameeventID- the event ID
-
SplunkEvent
public SplunkEvent()Default constructor
-
-
Method Details
-
getEventData
-
addPair
Add a key value pair -
addPair
Add a key value pair -
addPair
Add a key value pair -
addPair
Add a key value pair -
addPair
Add a key value pair -
addPair
Add a key value pair -
addThrowable
Utility method for formatting Throwable,Error,Exception objects in a more linear and Splunk friendly manner than printStackTrace- Parameters:
throwable- the Throwable object to add to the event
-
addThrowable
Utility method for formatting Throwable,Error,Exception objects in a more linear and Splunk friendly manner than printStackTrace- Parameters:
throwable- the Throwable object to add to the eventstackTraceDepth- maximum number of stacktrace elements to log
-
addPair
Add a key value pair -
toString
return the completed event message -
setCommonCategory
-
setCommonCount
-
setCommonDesc
-
setCommonDhcpPool
-
setCommonDuration
public void setCommonDuration(long commonDuration) -
setCommonDvcHost
-
setCommonDvcIp
-
setCommonDvcIp6
-
setCommonDvcLocation
-
setCommonDvcMac
-
setCommonDvcNtDomain
-
setCommonDvcNtHost
-
setCommonDvcTime
public void setCommonDvcTime(long commonDvcTime) -
setCommonEndTime
public void setCommonEndTime(long commonEndTime) -
setCommonEventId
public void setCommonEventId(long commonEventId) -
setCommonLength
public void setCommonLength(long commonLength) -
setCommonLogLevel
-
setCommonName
-
setCommonPid
public void setCommonPid(long commonPid) -
setCommonPriority
public void setCommonPriority(long commonPriority) -
setCommonProduct
-
setCommonProductVersion
public void setCommonProductVersion(long commonProductVersion) -
setCommonReason
-
setCommonResult
-
setCommonSeverity
-
setCommonStartTime
public void setCommonStartTime(long commonStartTime) -
setCommonTransactionId
-
setCommonUrl
-
setCommonVendor
-
setUpdatePackage
-