# log-monitor **Repository Path**: finallygo/log-monitor ## Basic Information - **Project Name**: log-monitor - **Description**: statistics qps & cost_time base on log - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2015-09-08 - **Last Updated**: 2022-05-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README log_monitor =========== How to use? ``` tail -f |grep --line-buffered |lm ``` Output format: ``` log_time: 2019-10-28 10:36:18, QPS:10, avg_cost_time:22, max_cost_time:222 log_time: 2019-10-28 10:36:20, QPS:1, avg_cost_time:222, max_cost_time:222 log_time: 2019-10-28 10:36:21, QPS:2, avg_cost_time:111, max_cost_time:222 log_time: 2019-10-28 10:36:22, QPS:2, avg_cost_time:166, max_cost_time:333 log_time: 2019-10-28 10:36:24, QPS:2, avg_cost_time:166, max_cost_time:333 log_time: 2019-10-28 10:36:25, QPS:1, avg_cost_time:111, max_cost_time:111 log_time: 2019-10-28 10:36:32, QPS:1, avg_cost_time:111, max_cost_time:111 ``` ## Function list * Stat for qps * Stat for avg/max cost time(if filter by number) ## Compile * make