Hi i have to build a collector for this log:

# 00857256920, servidores, internos, usuarios, FNDE
dn: cn=00857256920,ou=servidores,ou=internos,ou=usuari os,o=FNDE
fndeCPF: 00857256920
fullName: ANDRESSA ZUCCHI

i need do capture that two lines and put in report.

my expression is: ([A-Z]{3,}):\s(\S+)\s

okay, i create a new collector and customize the release , but dont
work. can i send to mee one example of realese.js for that case.

i work in that line:


Code:
--------------------
Collector.prototype.initialize = function(){
this.MAPS.syslogSev = new KeyMap(this.CONFIG.collDir + "severity.map");
this.MAPS.statusCodeMap = new KeyMap(this.CONFIG.collDir + "statuscodes.map");
return true;
}


Collector.prototype.cleanup = function(){
return true;
};

Connector.prototype.sendQuery = function(){
return true;
};

Record.prototype.preParse = function(e){
if (this.CONNECTION_ERROR != null) {
return false;
}
return true;
}

Record.prototype.parse = function(e){
if (/([A-Z]{3,}):\s(\S+)\s/.test(this.s_RXBufferString))
{
this.id=RegExp.$1;
this.msg = instance.MAPS.statusCodeMap.lookup(this.id);
}
return true;
}


Record.prototype.normalize = function(e){
return true;
};


Record.prototype.postParse = function(e){
return true;
};


Record.prototype.reply = function(e){
return true;
};
--------------------


--
diogobsb
------------------------------------------------------------------------
diogobsb's Profile: https://forums.netiq.com/member.php?userid=7491
View this thread: https://forums.netiq.com/showthread.php?t=51176