Parse log file as input and export the data to database as output.
Project description
logio
Parse log file as input and export the data to database as output.
Install
pip install logio
Installed Command Utils
- logio
Usage
C:\Workspace\logio>logio --help
Usage: logio [OPTIONS] COMMAND [ARGS]...
Parse log file as input and export the data to database as output.
Options:
-c, --config TEXT Config file path. The config file must in yaml format.
[required]
--help Show this message and exit.
Commands:
scan Try example settings on a test file.
server Start log handler server.
test Parse the example text and print out parse result.
Settings
- input
- type: stdin, file, tail
- ignore-blank-lines: true, false
- encoding: utf-8, gb18030, ...
- for type=file
- filename
- for type=tail
- filename
- offset-file
- read-from-end
- backup-patterns
- sleep-interval
- non-blocking
- blocking
- output
- type: mysql, stdout, print-not-matched-line
- buffer-size
- for type=mysql
- ignore-not-matched-lines
- keep-failed-lines
- inserts: list<string, string>
- key: DEFAULT, some other key
- sql_template
- parser
- type: regex
- use-default-rules
- transforms
- rules
- matches: list<string, string>
- matched_name
- regex
Releases
v0.1.9 2020/09/10
- Change package's home url.
v0.1.8 2020/09/09
- Translate help informations to english.
- Add License.
- Add LogToStdout.
v0.1.7
- Some bad old release, ignore them...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logio-0.1.9.tar.gz
(11.7 kB
view details)
File details
Details for the file logio-0.1.9.tar.gz
.
File metadata
- Download URL: logio-0.1.9.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d88eeba8c3606f5086a3d24f6fedc022f4d503ac83ab7759d3aa038d170435f6 |
|
MD5 | 097e32fac4bcfeecd799199c6da8bf6a |
|
BLAKE2b-256 | 7f030ee6d38524ee5e53f2556395bc839d0237d8ce6bf907d738303277175293 |