Skip to main content

Awesome plots from custom logs

Project description

# LogPlot

[![Build Status](https://travis-ci.org/jerry-git/logplot.svg?branch=master)](https://travis-ci.org/jerry-git/logplot)
[![PyPI version](https://badge.fury.io/py/logplot.svg)](https://pypi.python.org/pypi/logplot/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/logplot.svg)](https://pypi.python.org/pypi/logplot/)
[![codecov](https://codecov.io/gh/jerry-git/logplot/branch/master/graph/badge.svg)](https://codecov.io/gh/jerry-git/logplot)
[![license](https://img.shields.io/github/license/jerry-git/logplot.svg)](https://github.com/jerry-git/logplot/blob/master/LICENSE)
[![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)


<p align="center">
<img src="https://github.com/jerry-git/logplot/blob/master/doc/examples/example.gif" alt="example gif"/>
</p>


## Installation
You can't use 'macro parameter character #' in math mode logplot path/to/log -c path/to/conf/file

For example, this:

logplotdoc/examples/log.txtcdoc/examples/userconf.yamlyieldsthis:<palign="center"><imgsrc="https://github.com/jerrygit/logplot/blob/master/doc/examples/plot.png"alt="exampleplot"/></p>Clickingadatapointintheplotopensthelogfileinthecorrectlinenumberintheeditordefinedintheconfigurationfile.Ifthelogopencmdisnotconfigured,thelogwillbeopenedwithadefaultprogramdefinedbytheOS.Notethatlogopencmdhastoconfiguredtobeabletoopentheloginthecorrectlinenumber.logplotwillautomaticallyidentifydifferenttrendsintheplottedentries.Youcantogglethevisibilityofthesetrendsbyclickingitemsinthelegend.Heresanexampleofabitbiggerlogwhichcontains100kentries,13differentstates,and15differenttrends. logplot doc/examples/log_huge.txt -c doc/examples/user_conf_huge.yaml

<p align="center">
<img src="https://github.com/jerry-git/logplot/blob/master/doc/examples/plot_huge.png" alt="example plot huge"/>
</p>

And the same with three most occuring trends filtered out.

<p align="center">
<img src="https://github.com/jerry-git/logplot/blob/master/doc/examples/plot_huge_filtered.png" alt="example plot huge filtered"/>
</p>

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page