lnav - ncurses-based log file viewer

安裝

shell> apt-get install lnav
shell> lnav -s
shell> lnav /var/log
shell> lnav /var/log/apache2
shell> make 2>&1 | lnav -t
SELECT c_ip, count(*), sum(sc_bytes) AS total FROM access_log GROUP BY c_ip ORDER BY total DESC;
shell> lnav -n \
 -c ';SELECT c_ip, count(*) AS total FROM access_log GROUP BY c_ip ORDER BY total DESC LIMIT 10' \
 -c ':write-csv-to -' \
 access.log

:books: 參考網站:

powered by Gitbook最後更新: 2017-11-21 03:07:22

results matching ""

    No results matching ""