Skip to main content

Output graph script by log file. In addition to a single file, you can easily process a large number of identical format log files.

System requirements

  • language : After Python 3.4.7

  • necessary package

    • matplotlib

    • pandas

    • PyYAML

install

pip install plotlog

If you need build your environment

git clone https://github.com/s-naoya/plotlog
cd plotlog
python setup.py install

Usage

plotlog [-h] [--setting SETTING_FILE_PATH] [--copy]
        [--new | --all | --after DATE | --select DATE [DATE ...] |
        --input LOG_FILE_PATH [LOG_FILE_PATH ...]] [--slice BEGIN END]
        [--noshift]

optional arguments:
  -h, --help            show this help message and exit
  --setting SETTING_FILE_PATH
                        select setting file (default:'user.yml')
  --copy                copy original setting file
  --new                 DEFAULT: output graphs that has not been output yet
  --all                 output graphs for all data
  --after DATE          output graphs after the selected DATE(yyyymmddhhmm)
  --select DATE [DATE ...]
                        output graphs only selected DATEs
  --input LOG_FILE_PATH [LOG_FILE_PATH ...]
                        output graphs for selected log file
  --slice BEGIN END     sliced data by begin and end x-axis value
  --noshift             don't shift plot start time and x-axis

First, create setting file.

plotlog --copy

Edit the created user.yml, setting each pass and the graph etc to create. Setting items that do not need to be changed may be deleted.

Finish edit user.yml, create graph.

plotlog

If user.yml is set correctly, a graph is drawn for a log file that has not yet been output graph.

Setting

It is reflected by editing user.yml. Also, this is reflected by creating a new yaml file and reading it with the --setting argument.

Log file condition

  • Be sure to use the year, month, date, and time as the name of the log file and cam use some symbol. However, all log file names under put_log_dir must be in the same format. The format is specified by log_date_format in the configuration file.

  • Extension and separate character can change setting file.

  • All column equal all row

  • Put on the directory specified in the setting file (except when using –-input)

LICENCE

This script is licenced under the MIT License. (See link)

Release files for plotlog 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plotlog 0.4.0
File Size Uploaded
plotlog-0.4.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plotlog 0.4.0
File Interpreter ABI Platform
plotlog-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.9 kB

Release files / plotlog-0.4.0.tar.gz

Download URL plotlog-0.4.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
95e77151ce56fab2928034ec67a3a42a2993f066414be3f4a4ea22abd1a3db12
BLAKE2b-256 checksum
How to use checksums
e8cd57b4b1a961b28bb61a04e30697fd7e4ed97d7f9f66966344d40bbc354fdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

Release files / plotlog-0.4.0-py3-none-any.whl

Download URL plotlog-0.4.0-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
974a1bc769bebef5dccfd9f803bcdd2b66e00e36a711e611232273b630c73b0d
BLAKE2b-256 checksum
How to use checksums
a21fd408fd0c725a19f7afcdc23129905fbee7557736fd94f5b832ce8cd0d2d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page