Log Entry/Analyzer Java
€30-250 EUR
Pagado a la entrega
Tengo una tarea para analizar un archivo de log de la forma:
APPID={Identificador de aplicación[Alfanumérico ]};SV={Identificador de Servicio[numérico]};HASH={Resumen del Cuerpo del Mensaje[Alfanumérico]};TIME={Número de milisegundo[numérico]}
y quiero hacer un desarrollo para detectar las siguientes anomalías:
- aplicación que supere un número máximo de peticiones por servicio establecido para un intervalo definido.
- aplicación que supere un número máximo de peticiones repetidas establecido para un intervalo definido.
Ff it detects any of the following anomaly:
- application that exceeds a maximum number of requests per service set for a defined interval, for example 10 minutes (the same hash)
- application that exceeds a maximum number of repeated requests set for a defined interval, for example 10 minutes. (The same service SV)
An alarm will be issued.
In order to perform offline processing, the following information must be entered in a new log:
APPEND = {Application identifier [Alphanumeric]}; SV = {Service identifier [numeric]}; HASH = {Message body summary [Alphanumeric]}; TIME = {Number of millisecond [numerical]}
File: Can have mbs but will read only the last 10 minutes of the file
APPID=hgsgh5478s;SV=12;HASH=ikhfsauif5fdr5grfgd888;TIME=54875255
APPID=hgsgh5478s;SV=12;HASH=ikhfsauif5fdr5grfgd888;TIME=54876200
APPID=hgsgh54ois;SV=12;HASH=ikhfsauif5fdr5grfgd798;TIME=54876700
APPID=hgsgh54778;SV=12;HASH=ikhfsauif5fdr5grfgd889;TIME=54877500
I started to create same classes:
class1:
package pack;
/**
* @author hassane.elghafoud
*
*/
public class LogEntry {
public String appid;
public int sv;
public String hash;
public int time;
public LogEntry(String appid, int sv, String hash, int time) {
// TODO Auto-generated constructor stub
this.appid = appid;
this.sv = sv;
this.hash = hash;
this.time = time;
}
public String getAppid() {
return appid;
}
public int getSv() {
return sv;
}
public String getHash() {
return hash;
}
public int getTime() {
return time;
}
public String toString() {
return appid + ";" + sv + ";" + hash + ";" + time;
}
}
Class2:
package pack;
import java.util.*;
import java.io.*;
public class LogRead {
public static void main(String[] args) throws IOException {
// leer el fichero
BufferedReader in = new BufferedReader(new FileReader("C:/files/log.txt"));
String str;
// leer la linea por linea
List<LogEntry> list = new ArrayList<LogEntry>();
while ((str = in.readLine()) != null) {
LogEntry log = new LogEntry(appid, sv, hash, time);
cleanList(list, log.getTime());
list.add(log);
//updateMap();
}
}
private static void cleanList(List<LogEntry> list, int time) {
// TODO Auto-generated method stub
}
}
Nº del proyecto: #13399467
Sobre el proyecto
Adjudicado a:
Hello, Check our profile we have 100 % completion rate with on time delivery . We have expert developers here and they are fast so you will have guaranteed delivery on time . We also worked on penalty for late deliver Más
4 freelancers están ofertando un promedio de €103 por este trabajo
We are a group of developers specialized in all branches of software development. Our main goal is to satisfy 100% customers in the least time possible.
Hello, dear? How are you? I am a software developer in Web(WORDPRESS, ECOMMERCE, PHP, HTML, WOOCMMERCE, MAGENTO, CODEIGNITER). I have been working as strong individual developer, having enough experiences in 7 year Más
Hola señor, Hemos comprobado su detalle del proyecto según su requisito tenemos alguna pregunta en él. Por favor, inicie el chat para que podamos discutir sobre él para proporcionar estimación exacta y tiempo. Más