net.sf.logdistiller.logtypes
Class OracleAlertLogEvent

java.lang.Object
  extended by net.sf.logdistiller.LogEvent
      extended by net.sf.logdistiller.logtypes.OracleAlertLogEvent
All Implemented Interfaces:
Comparable

public class OracleAlertLogEvent
extends LogEvent
implements Comparable

Oracle Database's alert.log file parser. A typical rule configuration with such log files is:

 <group id="ORA">
  <description>ORA-* messages</description>
  <condition>
    <match attribute="message" type="contains">ORA-</match>
  </condition>
  <plugin type="sampling">
    <param name="attribute">message</param>
    <param name="regexp">(ORA-\d+)</param>
  </plugin>
 lt;/group>
 
By default, the classification rules generated by the GUI for this type of logs:
  1. will contain a such "ORA" group for events with an ORA- id
  2. but won't be able to sort other events, as the log event structure is too generic (the message has no specific format).

Since:
0.9

Field Summary
 Date date
           
static LogType.Description DESCRIPTION
           
static String ID
           
static LogType LOGTYPE
           
 String message
           
 String timestamp
           
 
Constructor Summary
OracleAlertLogEvent(net.sf.logdistiller.logtypes.OracleAlertLogEvent.Factory factory, String firstLine, String message)
           
 
Method Summary
 int compareTo(Object o)
           
 
Methods inherited from class net.sf.logdistiller.LogEvent
checkInitialized, dump, dump, getAttribute, getAttribute, getAttributes, getAttributesCount, getFactory, getRawLog, getTimestamp, getValue, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

timestamp

public final String timestamp

date

public final Date date

message

public final String message

LOGTYPE

public static final LogType LOGTYPE

DESCRIPTION

public static final LogType.Description DESCRIPTION
Constructor Detail

OracleAlertLogEvent

public OracleAlertLogEvent(net.sf.logdistiller.logtypes.OracleAlertLogEvent.Factory factory,
                           String firstLine,
                           String message)
                    throws ParseException
Throws:
ParseException
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 2004-2009. All Rights Reserved.