mirror of https://github.com/CIRCL/AIL-framework
Harmonising logs messages + Changing some dygraph options
parent
c3948867ad
commit
6aa4d7cb7d
|
@ -120,7 +120,7 @@ def main():
|
|||
Pub.send_message(msg)
|
||||
#dico_categ.add(categ)
|
||||
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("Categ", PST.p_source, PST.p_date, PST.p_name,"Detected "+score+" "+word))
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("Categ", PST.p_source, PST.p_date, PST.p_name,"Detected "+score+" "+"\""+word+"\""))
|
||||
|
||||
else:
|
||||
if r_serv.sismember("SHUTDOWN_FLAGS", "Categ"):
|
||||
|
|
|
@ -69,9 +69,9 @@ def main():
|
|||
|
||||
pprint.pprint(Creditcard_set)
|
||||
if (len(Creditcard_set) > 0):
|
||||
publisher.warning('{0};{1};{2};{3};{4}'.format("CreditCard", PST.p_source, PST.p_date, PST.p_name, str(len(Creditcard_set))+" Valid number(s)" ))
|
||||
publisher.critical('{0};{1};{2};{3};{4}'.format("CreditCard", PST.p_source, PST.p_date, PST.p_name,"Checked " + str(len(Creditcard_set))+" valid number(s)" ))
|
||||
else:
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("CreditCard", PST.p_source, PST.p_date, PST.p_name, "CreditCard Related" ))
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("CreditCard", PST.p_source, PST.p_date, PST.p_name, "CreditCard related" ))
|
||||
|
||||
prec_filename = filename
|
||||
|
||||
|
|
|
@ -183,6 +183,7 @@ def main():
|
|||
if dupl != []:
|
||||
PST.__setattr__("p_duplicate", dupl)
|
||||
PST.save_attribute_redis(r_serv_merge, "p_duplicate", dupl)
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("Duplicate", PST.p_source, PST.p_date, PST.p_name,"Detected " + str(len(dupl)))
|
||||
|
||||
y = time.time()
|
||||
|
||||
|
|
|
@ -63,9 +63,9 @@ def main():
|
|||
|
||||
pprint.pprint(MX_values)
|
||||
if MX_values[0] > 10:
|
||||
publisher.warning('{0};{1};{2};{3};{4}'.format("Mails", PST.p_source, PST.p_date, PST.p_name, str(MX_values[0])+ " e-mails detected" ))
|
||||
publisher.warning('{0};{1};{2};{3};{4}'.format("Mails", PST.p_source, PST.p_date, PST.p_name,"Checked "+ str(MX_values[0])+ " e-mails" ))
|
||||
else:
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("Mails", PST.p_source, PST.p_date, PST.p_name, str(MX_values[0])+ " e-mails detected" ))
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("Mails", PST.p_source, PST.p_date, PST.p_name,"Checked " str(MX_values[0])+ " e-mail(s)" ))
|
||||
prec_filename = filename
|
||||
|
||||
else:
|
||||
|
|
|
@ -92,7 +92,7 @@ def main():
|
|||
pprint.pprint(domains_list)
|
||||
print PST.p_path
|
||||
if len(domains_list) > 0:
|
||||
publisher.warning('{0};{1};{2};{3};{4}'.format("Onion", PST.p_source, PST.p_date, PST.p_name, str(len(domains_list))+" .onions detected" ))
|
||||
publisher.warning('{0};{1};{2};{3};{4}'.format("Onion", PST.p_source, PST.p_date, PST.p_name,"Detected " + str(len(domains_list))+" .onion(s)" ))
|
||||
else:
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("Onion", PST.p_source, PST.p_date, PST.p_name, "Onion related" ))
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ def main():
|
|||
PST.save_attribute_redis(r_serv1, channel, (A_values[0],list(A_values[1])))
|
||||
|
||||
pprint.pprint(A_values)
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("Url", PST.p_source, PST.p_date, PST.p_name, str(A_values[0])+" Valid url detected" ))
|
||||
publisher.info('{0};{1};{2};{3};{4}'.format("Url", PST.p_source, PST.p_date, PST.p_name, "Checked "+str(A_values[0])+" URL" ))
|
||||
prec_filename = filename
|
||||
|
||||
else:
|
||||
|
|
|
@ -153,11 +153,10 @@ $(document).ready(function () {
|
|||
rollPeriod: 10,
|
||||
labelsKMB: true,
|
||||
logscale: true,
|
||||
drawGapEdgePoints: true,
|
||||
legend: "always",
|
||||
connectSeparatedPoints: true,
|
||||
//drawGapEdgePoints: true,
|
||||
//legend: "always",
|
||||
//connectSeparatedPoints: true,
|
||||
fillGraph: true,
|
||||
stackedGraph: true,
|
||||
includeZero: true,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue