From b4af3d30d8576cb58a6dc6266c4c060edb42370f Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 22 Apr 2021 23:39:09 -0700 Subject: [PATCH] Agent log indexing improvement. --- meshctrl.js | 5 ++++- out.txt | 40 ---------------------------------------- 2 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 out.txt diff --git a/meshctrl.js b/meshctrl.js index cfec1a16..ead1759b 100644 --- a/meshctrl.js +++ b/meshctrl.js @@ -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); } + } } diff --git a/out.txt b/out.txt deleted file mode 100644 index 047e3c8d..00000000 --- a/out.txt +++ /dev/null @@ -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...