Convert MongoDB 4.4 JSON logs to legacy logs to work for mTools and t2
generate_mplot_logs.py --log mongodb.log > legacy.log
- CONTROL
- Only a single CONTROL line to make it work for t2
- It needs to add pid, port, arch and host
- ACCESS
- To generate authentication entry
- NETWORK
- To generate the clients, connstats and connections statistics
- COMMAND, WRITE, QUERY and TXN
- To generate mplotqueries
- To generate mloginfo --queries
- To generate mloginfo --clients --connstats --connections
The converted log can be dragged to t2 to add "Server Log" metrics