|
IP*Works! V8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--ipworks.SyslogPacketInEvent
Fires whenever a system log packet is received.
System log packets are composed of three main sections, each of which can be broken down into two smaller pieces.
The first section is the PRI, which contains the originating FacilityCode and SeverityCode of the Message . FacilityCode is a value from 0 to 23, with each value being a different part of the system. Facility is a string representation of FacilityCode based on the following convention:
The second section contains the Timestamp and Hostname . Timestamp is a string that should conform to the standard structure "MMM DD, HH:MM:SS". The bean will search for the Timestamp and verify that it conforms. If it conforms, the bean will set Hostname , otherwise, everything after the PRI will be placed in Message .
If Conforms is TRUE, then the original syslog packet conforms to the syslog RFC and Timestamp , Hostname , and Message will all have valid values. Otherwise, you should parse the contents of Packet to verify the fields manually.
SourceAddress and SourcePort are the address and port from which Packet was sent. This can be an intermediate syslog server that is simply forwarding packets from the original host.
Syslog,
Syslog.PacketInEvent,
Serialized Form| Field Summary | |
boolean |
conforms
|
java.lang.String |
facility
|
int |
facilityCode
|
java.lang.String |
hostname
|
java.lang.String |
message
|
byte[] |
packet
|
java.lang.String |
severity
|
int |
severityCode
|
java.lang.String |
sourceAddress
|
int |
sourcePort
|
java.lang.String |
timestamp
|
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int facilityCode
public java.lang.String facility
public int severityCode
public java.lang.String severity
public java.lang.String timestamp
public java.lang.String hostname
public java.lang.String message
public boolean conforms
public byte[] packet
public java.lang.String sourceAddress
public int sourcePort
|
IP*Works! V8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||