mirror of https://github.com/tstack/lnav
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
421 B
ReStructuredText
21 lines
421 B
ReStructuredText
4 years ago
|
|
||
|
.. _Cookbook:
|
||
|
|
||
|
Cookbook
|
||
|
========
|
||
|
|
||
|
This chapter contains recipes for common tasks that can be done in **lnav**.
|
||
|
These recipes can be used as a starting point for your own needs after some
|
||
|
adaptation.
|
||
|
|
||
|
|
||
|
Log Analysis
|
||
|
------------
|
||
|
|
||
|
To count the number of times a client IP shows up in the loaded web access
|
||
|
logs:
|
||
|
|
||
|
.. code-block:: custsqlite
|
||
|
|
||
|
;SELECT c_ip, count(*) as hits FROM access_log GROUP BY c_ip ORDER BY hits DESC
|