|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.splunk.event.SplunkEvent
public class SplunkEvent
Field Summary | |
---|---|
static String |
COMMON_CATEGORY
A device-specific classification provided as part of the event. |
static String |
COMMON_COUNT
A device-specific classification provided as part of the event. |
static String |
COMMON_DESC
The free-form description of a particular event. |
static String |
COMMON_DHCP_POOL
The name of a given DHCP pool on a DHCP server. |
static String |
COMMON_DURATION
The amount of time the event lasted. |
static String |
COMMON_DVC_HOST
The fully qualified domain name of the device transmitting or recording the log record. |
static String |
COMMON_DVC_IP
The IPv4 address of the device reporting the event. |
static String |
COMMON_DVC_IP6
The IPv6 address of the device reporting the event. |
static String |
COMMON_DVC_LOCATION
The free-form description of the device's physical location. |
static String |
COMMON_DVC_MAC
The MAC (layer 2) address of the device reporting the event. |
static String |
COMMON_DVC_NT_DOMAIN
The Windows NT domain of the device recording or transmitting the event. |
static String |
COMMON_DVC_NT_HOST
The Windows NT host name of the device recording or transmitting the event. |
static String |
COMMON_DVC_TIME
Time at which the device recorded the event. |
static String |
COMMON_END_TIME
The event's specified end time. |
static String |
COMMON_EVENT_ID
A unique identifier that identifies the event. |
static String |
COMMON_LENGTH
The length of the datagram, event, message, or packet. |
static String |
COMMON_LOG_LEVEL
The log-level that was set on the device and recorded in the event. |
static String |
COMMON_NAME
The name of the event as reported by the device. |
static String |
COMMON_PID
An integer assigned by the device operating system to the process creating the record. |
static String |
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. |
static String |
COMMON_PRODUCT
The product that generated the event. |
static String |
COMMON_PRODUCT_VERSION
The version of the product that generated the event. |
static String |
COMMON_REASON
The result root cause, such as connection refused, timeout, crash, and so on. |
static String |
COMMON_RESULT
The action result. |
static String |
COMMON_SEVERITY
The severity (or priority) of an event as reported by the originating device. |
static String |
COMMON_START_TIME
The event's specified start time. |
static String |
COMMON_TRANSACTION_ID
The transaction identifier. |
static String |
COMMON_URL
A uniform record locator (a web address, in other words) included in a record. |
static String |
COMMON_VENDOR
The vendor who made the product that generated the event. |
static String |
UPDATE_PACKAGE
The name of the installed update. |
Constructor Summary | |
---|---|
SplunkEvent()
Default constructor |
|
SplunkEvent(Map<String,String> data)
A Constructor to load data from a Map |
|
SplunkEvent(SplunkEvent splunkEvent)
A Copy constructor |
|
SplunkEvent(String eventName,
String eventID)
Constructor to create a generic event with the default format |
|
SplunkEvent(String eventName,
String eventID,
boolean useInternalDate,
boolean quoteValues)
Constructor to create a generic event |
Method Summary | |
---|---|
void |
addPair(String key,
boolean value)
Add a key value pair |
void |
addPair(String key,
char value)
Add a key value pair |
void |
addPair(String key,
double value)
Add a key value pair |
void |
addPair(String key,
int value)
Add a key value pair |
void |
addPair(String key,
long value)
Add a key value pair |
void |
addPair(String key,
Object value)
Add a key value pair |
void |
addPair(String key,
String value)
Add a key value pair |
void |
addThrowable(Throwable throwable)
Utility method for formatting Throwable,Error,Exception objects in a more linear and Splunk friendly manner than printStackTrace |
void |
addThrowable(Throwable throwable,
int stackTraceDepth)
Utility method for formatting Throwable,Error,Exception objects in a more linear and Splunk friendly manner than printStackTrace |
Map<String,String> |
getEventData()
|
void |
setCommonCategory(String commonCategory)
|
void |
setCommonCount(String commonCount)
|
void |
setCommonDesc(String commonDesc)
|
void |
setCommonDhcpPool(String commonDhcpPool)
|
void |
setCommonDuration(long commonDuration)
|
void |
setCommonDvcHost(String commonDvcHost)
|
void |
setCommonDvcIp(String commonDvcIp)
|
void |
setCommonDvcIp6(String commonDvcIp6)
|
void |
setCommonDvcLocation(String commonDvcLocation)
|
void |
setCommonDvcMac(String commonDvcMac)
|
void |
setCommonDvcNtDomain(String commonDvcNtDomain)
|
void |
setCommonDvcNtHost(String commonDvcNtHost)
|
void |
setCommonDvcTime(long commonDvcTime)
|
void |
setCommonEndTime(long commonEndTime)
|
void |
setCommonEventId(long commonEventId)
|
void |
setCommonLength(long commonLength)
|
void |
setCommonLogLevel(String commonLogLevel)
|
void |
setCommonName(String commonName)
|
void |
setCommonPid(long commonPid)
|
void |
setCommonPriority(long commonPriority)
|
void |
setCommonProduct(String commonProduct)
|
void |
setCommonProductVersion(long commonProductVersion)
|
void |
setCommonReason(String commonReason)
|
void |
setCommonResult(String commonResult)
|
void |
setCommonSeverity(String commonSeverity)
|
void |
setCommonStartTime(long commonStartTime)
|
void |
setCommonTransactionId(String commonTransactionId)
|
void |
setCommonUrl(String commonUrl)
|
void |
setCommonVendor(String commonVendor)
|
void |
setUpdatePackage(String updatePackage)
|
String |
toString()
return the completed event message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String COMMON_CATEGORY
public static final String COMMON_COUNT
public static final String COMMON_DESC
public static final String COMMON_DHCP_POOL
public static final String COMMON_DURATION
public static final String COMMON_DVC_HOST
public static final String COMMON_DVC_IP
public static final String COMMON_DVC_IP6
public static final String COMMON_DVC_LOCATION
public static final String COMMON_DVC_MAC
public static final String COMMON_DVC_NT_DOMAIN
public static final String COMMON_DVC_NT_HOST
public static final String COMMON_DVC_TIME
public static final String COMMON_END_TIME
public static final String COMMON_EVENT_ID
public static final String COMMON_LENGTH
public static final String COMMON_LOG_LEVEL
public static final String COMMON_NAME
public static final String COMMON_PID
public static final String COMMON_PRIORITY
public static final String COMMON_PRODUCT
public static final String COMMON_PRODUCT_VERSION
public static final String COMMON_REASON
public static final String COMMON_RESULT
public static final String COMMON_SEVERITY
public static final String COMMON_START_TIME
public static final String COMMON_TRANSACTION_ID
public static final String COMMON_URL
public static final String COMMON_VENDOR
public static final String UPDATE_PACKAGE
Constructor Detail |
---|
public SplunkEvent(Map<String,String> data)
data
- the mappublic SplunkEvent(SplunkEvent splunkEvent)
public SplunkEvent(String eventName, String eventID, boolean useInternalDate, boolean quoteValues)
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 valuespublic SplunkEvent(String eventName, String eventID)
eventName
- the event nameeventID
- the event IDpublic SplunkEvent()
Method Detail |
---|
public Map<String,String> getEventData()
public void addPair(String key, char value)
public void addPair(String key, boolean value)
public void addPair(String key, double value)
public void addPair(String key, long value)
public void addPair(String key, int value)
public void addPair(String key, Object value)
public void addThrowable(Throwable throwable)
throwable
- the Throwable object to add to the eventpublic void addThrowable(Throwable throwable, int stackTraceDepth)
throwable
- the Throwable object to add to the eventstackTraceDepth
- maximum number of stacktrace elements to logpublic void addPair(String key, String value)
public String toString()
toString
in class Object
public void setCommonCategory(String commonCategory)
public void setCommonCount(String commonCount)
public void setCommonDesc(String commonDesc)
public void setCommonDhcpPool(String commonDhcpPool)
public void setCommonDuration(long commonDuration)
public void setCommonDvcHost(String commonDvcHost)
public void setCommonDvcIp(String commonDvcIp)
public void setCommonDvcIp6(String commonDvcIp6)
public void setCommonDvcLocation(String commonDvcLocation)
public void setCommonDvcMac(String commonDvcMac)
public void setCommonDvcNtDomain(String commonDvcNtDomain)
public void setCommonDvcNtHost(String commonDvcNtHost)
public void setCommonDvcTime(long commonDvcTime)
public void setCommonEndTime(long commonEndTime)
public void setCommonEventId(long commonEventId)
public void setCommonLength(long commonLength)
public void setCommonLogLevel(String commonLogLevel)
public void setCommonName(String commonName)
public void setCommonPid(long commonPid)
public void setCommonPriority(long commonPriority)
public void setCommonProduct(String commonProduct)
public void setCommonProductVersion(long commonProductVersion)
public void setCommonReason(String commonReason)
public void setCommonResult(String commonResult)
public void setCommonSeverity(String commonSeverity)
public void setCommonStartTime(long commonStartTime)
public void setCommonTransactionId(String commonTransactionId)
public void setCommonUrl(String commonUrl)
public void setCommonVendor(String commonVendor)
public void setUpdatePackage(String updatePackage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |