This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Introduction

General log parser is a tool for simple parsing of log files line by line. It assumes your log is in the form of a series of strings separated by tab or some kind of special field separator.

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

cat tests/a20150505.log | logparser

Parse from single file

logparser -l tests/a.20150505.log

Parse from a list of files

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

Get all lines contains ‘server1’

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

Get all lines contains ‘server1’ OR ‘server2’

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

Get all lines which does NOT contains ‘server1’

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

Get all lines where the third field > 9939928

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

Get all lines print only the second and third fields

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

Authors

Ha.Minh

License

Uses the MIT license.

History

0.1.7 (2015-05-29)

  • Fix bug with piped input

0.1.6 (2015-05-22)

  • Support unicode

0.1.5 (2015-05-19)

  • Port to python 3

0.1.4 (2015-05-16)

  • Add negative filter.

0.1.3 (2015-05-16)

  • Update Readme and license.

0.1.0 (2015-05-16)

  • First release on PyPI.
Release History

Release History

0.1.7

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.6

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
general_log_parser-0.1.7-py2.py3-none-any.whl (7.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel May 29, 2015
general-log-parser-0.1.7.tar.gz (14.7 kB) Copy SHA256 Checksum SHA256 Source May 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting