Agent log indexing improvement.

This commit is contained in:
Ylian Saint-Hilaire 2021-04-22 23:39:09 -07:00
parent b76cd09dc6
commit b4af3d30d8
2 changed files with 4 additions and 41 deletions

View File

@ -2330,5 +2330,8 @@ function indexAgentErrorLog() {
errorIndexCount = errorIndexCount.sort(function (a, b) { return b.c - a.c })
// Display the results
for (var i = 0; i < errorIndexCount.length; i++) { if (errorIndexCount[i].c > 100) { console.log(errorIndexCount[i].c, errorIndexCount[i].m); } }
for (var i = 0; i < errorIndexCount.length; i++) {
const m = errorIndexCount[i].m;
if ((m.indexOf('STUCK') >= 0) || (m.indexOf('FATAL') >= 0)) { console.log(errorIndexCount[i].c, m); }
}
}

40
out.txt
View File

@ -1,40 +0,0 @@
MeshCentral HTTP redirection server running on port 80.
MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
Server Ctrl-C exit...
MeshCentral HTTP redirection server running on port 80.
MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
Server Ctrl-C exit...
MeshCentral HTTP redirection server running on port 80.
MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
Server Ctrl-C exit...
MeshCentral HTTP redirection server running on port 80.
MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
Server Ctrl-C exit...
MeshCentral HTTP redirection server running on port 80.
MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
Server Ctrl-C exit...
MeshCentral HTTP redirection server running on port 80.
MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
Server Ctrl-C exit...
MeshCentral HTTP redirection server running on port 80.
MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
Server Ctrl-C exit...
MeshCentral HTTP redirection server running on port 80.
MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
Server Ctrl-C exit...