mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 17:34:32 +02:00
Renamed ip to source in example code
This commit is contained in:
parent
3d464893ee
commit
6e46b99134
1 changed files with 3 additions and 3 deletions
|
|
@ -948,10 +948,10 @@ With ``--lines``, instead of being passed a ``row`` dictionary your function wil
|
|||
You could convert it into structured data like so::
|
||||
|
||||
$ sqlite-utils insert logs.db loglines access.log --convert '
|
||||
type, ip, _, verb, path, _, status, _ = line.split()
|
||||
type, source, _, verb, path, _, status, _ = line.split()
|
||||
return {
|
||||
"type": type,
|
||||
"ip": ip,
|
||||
"source": source,
|
||||
"verb": verb,
|
||||
"path": path,
|
||||
"status": status,
|
||||
|
|
@ -960,7 +960,7 @@ You could convert it into structured data like so::
|
|||
The resulting table would look like this:
|
||||
|
||||
====== =============== ====== ============================ ========
|
||||
type ip verb path status
|
||||
type source verb path status
|
||||
====== =============== ====== ============================ ========
|
||||
INFO: 127.0.0.1:60581 GET / 200
|
||||
INFO: 127.0.0.1:60581 GET /foo/-/static/app.css?cead5a 200
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue