Processes Node.js Diagnostic Report(s).
Requires Node 12.x
or greater.
Usage:
node-report-analytics [command]
Available Commands:
elastic Loads Diagnostics Report(s) to Elasticsearch
help Help about any command
stats Prints the aggregated statistics of Diagnostics Report(s)
Flags:
-h, --help help for node-report-analytics
Print aggregated results on terminal.
make generate-report
make stats
Output:
+---------+-------+-------------------+------------------+------------------+
| HASH | COUNT | MESSAGE | FIRST OCCURENCE | LAST OCCURENCE |
+---------+-------+-------------------+------------------+------------------+
| 7b14b96 | 2 | Error: My Error | 2019-06-10 20:14 | 2019-06-10 20:15 |
| 2aac2df | 1 | Error: My Error 2 | 2019-06-10 20:15 | 2019-06-10 20:15 |
+---------+-------+-------------------+------------------+------------------+
Insert reports by hash to Elasticsearch.
make docker-compose
make elastic
Output:
7b14b968202c3218514e54f627c20de43323a631, 2019-06-10 20:14:52 +0000 UTC, Error: My Error
make test