|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.martealert.martealertTable
com.martealert.martealertFirstLevel
com.martealert.martealertSecondLevel
com.martealert.martealertThirdLevel
Class for create instances of martealertThird level from martealertSecondLevel.
Field Summary |
Fields inherited from class com.martealert.martealertFirstLevel |
max |
Fields inherited from class com.martealert.martealertTable |
_, ALIASVAR, columnNames, data, DEFAULT, GROUPBY, IDENT, INDEX, INDEXSEARCH, NAMEDVAR, RELATION, SELECT, TX, UNNAMEDVAR, VAR |
Fields inherited from interface com.martealert.martealertConstants |
AMBIGUOUS_FIELDS, ANALYZER, CLASSIFICATION, COMPLETION, FTS, FTSTZ, HOUR_IN_MILLIS, INTERVAL, IPADDRS, LASTJOIN, LTS, LTSTZ, MAXMSGID, MAXSEVERITY, MFTS, MLTS, MSGID, MSOURCEPORT, NALERTS, NOTNULL_FIELDS, NULL_FIELDS, NXCLASSIFICATION, ORDER_BY_ALERTS, ORDER_BY_MAXTIME, ORDER_BY_TIME, PRELUDE_TABLES, PROTOCOL, SENSOR, SEVERITY, SEVERITY_COMPLETION, SOURCE, SOURCEIP, SOURCEPORT, SOURCEUID, TARGET, TARGETIP, TARGETPORT, TARGETPORT_PROTOCOL, TARGETUID, TERMINAL, TIME, TIMETZ, TLAST, TOP, TOTALTIME |
Fields inherited from interface com.martealert.martealertRealTimeInterface |
REAL_TIME_CLASSIFICATION, REAL_TIME_COMPLETION, REAL_TIME_MSGID, REAL_TIME_SEVERITY, REAL_TIME_SOURCEIP, REAL_TIME_TARGETIP, REAL_TIME_TIME |
Constructor Summary | |
|
martealertThirdLevel()
Creates a new instance of preludeSingleAlert |
protected |
martealertThirdLevel(char separator)
Creates a new instance of preludeSingleAlert specifying |
Method Summary | |
protected java.lang.String |
getFTS(martealertTable pt)
|
int[] |
getIpColumns()
Get IP-columns numbers in an array of int. |
protected java.lang.String |
getLTS(martealertTable pt)
|
int[] |
getPortColumns()
Get port columns numbers in an array of int. |
int[] |
getProtocolColumns()
Get array with number of protocol columns, to be solved from protocol table in database. |
int |
getSeverityColumn()
Get column number which has maximum severity for each martealertFirstLevel row. |
protected java.lang.String |
getSqlGroupBy()
|
protected java.lang.String |
getSqlOrderBy()
|
protected java.lang.String |
getSqlVars()
Return a string with all variables needed for martealertFirstLevel, separated with comas except the last one |
void |
reload(java.sql.Connection con,
martealertSecondLevel jpsnd,
int[] nrow,
martealertHashFilter filter)
Returns a table (Vector of Vector of String) with all alerts grouped by source and target addresses. |
Methods inherited from class com.martealert.martealertSecondLevel |
getFTSColumn, getIgnoredColumnsPdf, getLTSColumn, getMultilineColumns, getSqlAuxGroupBy, getSqlAuxVars, reload, vfields |
Methods inherited from class com.martealert.martealertFirstLevel |
clear, getClassification, getFirstLevelRow, getIP, getIpAddress, getIpAddress, getNextPairAddress, getPairAddressTable, getPort, getProbe, getProtocol, getRowInfoTable, getSensorInfo, getSourceInfo, getSqlLimit, getSqlWhere, getTargetInfo, initFirstLevel, main, numberOcurrences, reload, reload, reload, setColumnNames |
Methods inherited from class com.martealert.martealertTable |
getColumn, getColumnNames, getColumnSize, getData, getPercentColumns, getRow, getRowSize, getSqlRelation, getTableVector, getValue, getValue, getValue, printTable, setColumnNames, setDataVector, setDataVector, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public martealertThirdLevel()
protected martealertThirdLevel(char separator)
separator
- constant to represent "classification" separated by '\n' or a space ' '.Method Detail |
public void reload(java.sql.Connection con, martealertSecondLevel jpsnd, int[] nrow, martealertHashFilter filter) throws java.sql.SQLException
con
- Conneciton variable to access the database.jpsnd
- martealertSecondLevel
from is obtained third one.filter
- martealertHashFilter
to obtain third level filtered.nrow
- Row vector which is wanted to unfold.
Classification | Source Addr | Source Port | Source UserId | Protocol | Target Addr | Target Port | Target UserId | Service (pid) | this.SENSOR | this.TIME | log ID |
---|---|---|---|---|---|---|---|---|---|---|---|
User Created | 105 p2p | 127.0.0.1 | 100 | useradd (24306) | PAM | 2005-12-15 00:04:40 | 50 | ||||
User Created | 1001 mldonkey | 127.0.0.1 | 100 | useradd (24552) | PAM | 2005-12-15 00:10:19 | 52 | ||||
User Created | 123 ntp | 127.0.0.1 | 123 | useradd (17091) | PAM | 2005-12-15 15:26:45 | 114 | ||||
User Created | 261 zope | 127.0.0.1 | 261 | useradd (22801) | PAM | 2005-12-20 23:32:26 | 237 |
java.sql.SQLException
- SQL syntax error invoking statement.executeQuery(String sql_query);protected java.lang.String getSqlVars()
martealertSecondLevel
getSqlVars
in class martealertSecondLevel
protected java.lang.String getSqlGroupBy()
getSqlGroupBy
in class martealertSecondLevel
protected java.lang.String getSqlOrderBy()
getSqlOrderBy
in class martealertSecondLevel
protected java.lang.String getFTS(martealertTable pt)
getFTS
in class martealertSecondLevel
protected java.lang.String getLTS(martealertTable pt)
getLTS
in class martealertSecondLevel
public int[] getIpColumns()
getIpColumns
in class martealertSecondLevel
public int getSeverityColumn()
martealertFirstLevel
getSeverityColumn
in class martealertSecondLevel
public int[] getProtocolColumns()
martealertTable
getProtocolColumns
in class martealertSecondLevel
public int[] getPortColumns()
getPortColumns
in class martealertSecondLevel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |