mirror of https://github.com/tstack/lnav
[docs] start a cookbook
parent
b5af750256
commit
2b9f4c6d3a
@ -0,0 +1,20 @@
|
||||
|
||||
.. _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
|
Loading…
Reference in New Issue