{ "info": { "author": "Matthew Story", "author_email": "matt.story@axial.net", "bugtrack_url": null, "classifiers": [], "description": "========\nroutelog\n========\n\nroutelog is a flexible execution-based log processing program and Domain\nSpecific Language. routelog takes a rules file in the following format::\n\n /pattern/ command $1 $2\n\nAnd operates on one or more log files, executing ``command $1 $2`` for all\nlines matching the regular expression ``/pattern/`` substituting the first and\nsecond items in the log line for ``$1`` and ``$2`` respectively. A rules file\nwith the following directive::\n\n /ERROR/ echo \"$*\" | mail -s \"Error executing ${3%:} on $2 at $1\" error@example.com\n\nWould process a log entry like::\n\n 2012-12-07T12:06:11-05:00 server1 program_name: ERROR foo\n\nand send an email to error@example.com with the subject::\n\n Error executing program_name on server1 at 2012-12-07T12:06:11-05:00'\n\nand the body::\n\n 2012-12-07T12:06:11-05:00 server1 program_name: ERROR foo\n\nRules files are processed by the routelog program::\n\n routelog mail-errors.rules /var/log/*.log\n\nThe routelog program acts as a filter, passing all log lines to stdout, which\nis useful for doing additional processing in a single pipeline::\n\n routelog mail-errors.rules /var/log/*.log | bzip2 > todays-logs.`date +%s`.bz2\n\nFor more on rules files, see ``man 5 routelog``, for more on routelog see\n``man 1 routelog``.\n\nInstalling\n==========\n\nThe routelog project lives on github_, and is available via pip_.\n\n.. _github: https://github.com/axialmarket/routelog\n.. _pip: https://pypi.python.org/pypi?:action=display&name=routelog\n\nInstalling v0.1 From Pip\n------------------------\n\n::\n\n sudo pip install routelog==0.1\n\nInstalling v0.1 From Source\n---------------------------\n\n::\n\n wget https://github.com/axialmarket/routelog/archive/routelog-0.1.tar.gz | tar vzxf -\n cd routelog-0.1\n sudo python setup.py install\n\nUsage\n=====\n\n::\n\n routelog [-h|--help] [-c|--comments] [-n|--no-output] rules_file [ log_file [...]]\n\nOptional Arguments\n------------------\n\n\\-h, --help\n Print an extended usage to stdout and exit.\n\\-c, --comments\n Treat comments in log lines (anything following a ' #') as arguments, rather\n than ignoring them.\n\\-n, --no-output\n Suppress the (default) behavior of printing each log line to stdout.\n\nMore documentation is available via for the routelog program\n(``man 1 routelog``) and routelog rules file formats (``man 5 routelog``)\nafter install.\n\nLicense\n=======\n\nroutelog is made available for use under a 3-clause BSD license (see:\nLICENSE.txt in the package).\n\nAuthors\n=======\n\nMatthew Story (matt.story@axial.net)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/axialmarket/routelog", "keywords": null, "license": "3-BSD", "maintainer": null, "maintainer_email": null, "name": "routelog", "package_url": "https://pypi.org/project/routelog/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/routelog/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/axialmarket/routelog" }, "release_url": "https://pypi.org/project/routelog/0.1/", "requires_dist": null, "requires_python": null, "summary": "A Flexible DSL For Processing Logs", "version": "0.1" }, "last_serial": 882191, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "daa96ab884e79d7ffd3adbd148ba96ea", "sha256": "9987fe2cd9778f5df2e4b76fc8ce04937a3ceefb500aaeb5086475c68131aa41" }, "downloads": -1, "filename": "routelog-0.1.tar.gz", "has_sig": false, "md5_digest": "daa96ab884e79d7ffd3adbd148ba96ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7791, "upload_time": "2013-10-05T23:14:32", "url": "https://files.pythonhosted.org/packages/0a/84/f7a74de966697d7e7f997fe0e1ee58b94af529773b798206dd549539657a/routelog-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "daa96ab884e79d7ffd3adbd148ba96ea", "sha256": "9987fe2cd9778f5df2e4b76fc8ce04937a3ceefb500aaeb5086475c68131aa41" }, "downloads": -1, "filename": "routelog-0.1.tar.gz", "has_sig": false, "md5_digest": "daa96ab884e79d7ffd3adbd148ba96ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7791, "upload_time": "2013-10-05T23:14:32", "url": "https://files.pythonhosted.org/packages/0a/84/f7a74de966697d7e7f997fe0e1ee58b94af529773b798206dd549539657a/routelog-0.1.tar.gz" } ] }