Metadata-Version: 2.0
Name: general-log-parser
Version: 0.1.3
Summary: A general log parser
Home-page: https://github.com/minhhh/general-log-parser
Author: Ha.Minh
Author-email: minhhh@minhhuyha.info
License: BSD
Keywords: general-log-parser
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Requires-Dist: click (==4.0)
Requires-Dist: fn (==0.4.3)
Requires-Dist: six (==1.9.0)
Requires-Dist: wsgiref (==0.1.2)

General Log Parser
==================

.. image:: https://img.shields.io/pypi/v/general-log-parser.svg
        :target: https://pypi.python.org/pypi/general-log-parser


Introduction
------------
General log parser is a tool for simple parsing of log files line by line.

It offers 2 modes:

- Parsing from standard input.
- Parsing from a file or a list of files.

Usage examples
--------------
Uses the test files from the ``tests`` folder.

Parse from standard input

.. code-block:: bash

    cat tests/a20150505.log | logparser

Parse from single file

.. code-block:: bash

    logparser -l tests/a.20150505.log

Parse from a list of files

.. code-block:: bash

    logparser -l a.{}.log --from 20150501 --to 20150506 --input-dir tests

Get all lines contains 'server1'

.. code-block:: bash

    logparser -l tests/a.20150505.log --line-filter server1

Get all lines contains 'server1' OR 'server2'

.. code-block:: bash

    logparser -l tests/a.20150505.log --line-filter server1 --line-filter server2

Get all lines where the third field > 9939928

.. code-block:: bash

    logparser -l tests/a.20150505.log --cond-filter "{2} > 9939928"

Get all lines print only the second and third fields

.. code-block:: bash

    logparser -l tests/a.20150505.log --line-filter server1 -o "{1} {2}"

Authors
---------

Ha.Minh_

License
-------

Uses the `MIT`_ license.

.. _MIT: http://opensource.org/licenses/MIT
.. _Ha.Minh: http://minhhh.github.io
.. _document: https://general-log-parser.readthedocs.org





History
-------

0.1.3 (2015-05-16)
------------------

* Update Readme and license.

0.1.0 (2015-05-16)
------------------

* First release on PyPI.


TODO
----
* Port to Python3



