add more fields
This commit is contained in:
@@ -93,6 +93,11 @@ async function refresh() {
|
||||
{label:'Score', key:'score'},
|
||||
{label:'Severity', render:r => `<span class="sev-${esc(r.severity)}">${esc(r.severity)}</span>`},
|
||||
{label:'Confidence', key:'confidence'},
|
||||
{label:'Rate / ports / hits', render:r => {
|
||||
const e = r.evidence || {};
|
||||
const rate = e.timed_events > 1 ? `${e.events_per_minute} events/min` : 'no timestamps';
|
||||
return esc(`${rate}; dst ports: ${e.distinct_dst_ports || 0}; src ports: ${e.distinct_src_ports || 0}; hitcount: ${e.hitcount_total || 0}`);
|
||||
}},
|
||||
{label:'Reasons', render:r => esc((r.reasons || []).join('; '))}
|
||||
]);
|
||||
document.getElementById('recommendations').innerHTML = table(data.recommendations || [], [
|
||||
@@ -127,6 +132,8 @@ async function refresh() {
|
||||
const d = data.diagnostics || {};
|
||||
document.getElementById('diagnostics').innerHTML =
|
||||
'<h3>Top Sources</h3>' + table(d.top_source_ips || [], [{label:'Value', key:'value'}, {label:'Count', key:'count'}]) +
|
||||
'<h3>Top Destination Ports</h3>' + table(d.top_destination_ports || [], [{label:'Value', key:'value'}, {label:'Count', key:'count'}]) +
|
||||
'<h3>Top Source Ports</h3>' + table(d.top_source_ports || [], [{label:'Value', key:'value'}, {label:'Count', key:'count'}]) +
|
||||
'<h3>Top Services</h3>' + table(d.top_services || [], [{label:'Value', key:'value'}, {label:'Count', key:'count'}]) +
|
||||
'<h3>Local-in Failures</h3>' + table(d.local_in_failures || [], [{label:'Source', key:'src_ip'}, {label:'Service', key:'service'}, {label:'Policy', key:'policy'}, {label:'Count', key:'count'}]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user