Convert log to json
Project description
log2json
Convert log file to text or json format.
Installation
This project can be installed via pip
:
pip install log2json-fauzanelka
Or build it yourself by cloning this project:
git clone https://github.com/fauzanelka/log2json
Then install
cd log2json
python setup.py install
Usage
Convert to text format
Convert log file to text (default)
log2json /var/log/nginx/access.log -o $HOME/nginx-access.txt
Convert multiple log files to text with destination directory
log2json /var/log/nginx/access.log /var/log/nginx/error.log -d $HOME/log2json/
If destination directory is not provided, the scripts will use current directory
+ log2json_output
Convert to json format (not implemented yet)
Convert log file to json
log2json /var/log/nginx/access.log -t json -o $HOME/nginx-access.txt
Convert multiple log files to text with destination directory
log2json /var/log/nginx/access.log /var/log/nginx/error.log -t json -d $HOME/log2json/
For further documentation you can run
log2json -h
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
Built Distributions
Close
Hashes for log2json-fauzanelka-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9beda155a2acbd90172919d8855a1a98a310b011c282fbf61a02771df0ae7ee7 |
|
MD5 | 7d37365196e1bc20d7f55a4ad777a928 |
|
BLAKE2b-256 | 5e810352ceeae0570b3c57f5f2a9d2ef26f9f459553c40a0bc8f4cd0d3342b41 |
Close
Hashes for log2json_fauzanelka-0.0.1-py3.9.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0620cd96d4fecdfa6fbc5fbf5b1a0a8198d70e138cdcae278849159a2fbca4c |
|
MD5 | 3fb3bfdfa9038bbf32237cbc8e249979 |
|
BLAKE2b-256 | 2ef0537ba4d3b9e6303c0ab677e990a208a9b7f0468deb13ab8032f073fb7669 |
Close
Hashes for log2json_fauzanelka-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b40fc596eb78e623ec071b45fc9512135432b7f53f310e9f3bc8e8e8bdd76f7b |
|
MD5 | 5f3920edc8a439f5c97e5b6bccf5e625 |
|
BLAKE2b-256 | 8662113fe24f5a0d11d67a215a2fcb5c6ba31dd20b8f42fa672bad1370cfd9a6 |