Agent log indexing improvement.

Ylian Saint-Hilaire committed Apr 22, 2021 at 23:39 UTC b4af3d30d8576cb58a6dc6266c4c060edb42370f
2 files changed +4 -41
meshctrl.js
+4 -1
@@ -2330,5 +2330,8 @@ function indexAgentErrorLog() {
2330 errorIndexCount = errorIndexCount.sort(function (a, b) { return b.c - a.c })
2331
2332 // Display the results
2333 - for (var i = 0; i < errorIndexCount.length; i++) { if (errorIndexCount[i].c > 100) { console.log(errorIndexCount[i].c, errorIndexCount[i].m); } }
2333 + for (var i = 0; i < errorIndexCount.length; i++) {
2334 + const m = errorIndexCount[i].m;
2335 + if ((m.indexOf('STUCK') >= 0) || (m.indexOf('FATAL') >= 0)) { console.log(errorIndexCount[i].c, m); }
2336 + }
2337 }
out.txt deleted
-40
@@ -1,40 +0,0 @@
1 -MeshCentral HTTP redirection server running on port 80.
2 -MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
3 -MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
4 -MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
5 -Server Ctrl-C exit...
6 -MeshCentral HTTP redirection server running on port 80.
7 -MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
8 -MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
9 -MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
10 -Server Ctrl-C exit...
11 -MeshCentral HTTP redirection server running on port 80.
12 -MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
13 -MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
14 -MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
15 -Server Ctrl-C exit...
16 -MeshCentral HTTP redirection server running on port 80.
17 -MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
18 -MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
19 -MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
20 -Server Ctrl-C exit...
21 -MeshCentral HTTP redirection server running on port 80.
22 -MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
23 -MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
24 -MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
25 -Server Ctrl-C exit...
26 -MeshCentral HTTP redirection server running on port 80.
27 -MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
28 -MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
29 -MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
30 -Server Ctrl-C exit...
31 -MeshCentral HTTP redirection server running on port 80.
32 -MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
33 -MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
34 -MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
35 -Server Ctrl-C exit...
36 -MeshCentral HTTP redirection server running on port 80.
37 -MeshCentral v0.8.16, Hybrid (LAN + WAN) mode.
38 -MeshCentral Intel(R) AMT server running on central.mesh.meshcentral.com:4433.
39 -MeshCentral HTTPS server running on central.mesh.meshcentral.com:443.
40 -Server Ctrl-C exit...