{ "info": { "author": "metagriffin", "author_email": "mg.pypi@uberdev.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "========================\nModSecurity Log Compiler\n========================\n\nThe `modseclogc` is a ModSecurity audit log file manipulation and\nanalysis tool, command-line or python module based.\n\n\nProject\n=======\n\n* Homepage: https://github.com/metagriffin/modseclogc\n* Bugs: https://github.com/metagriffin/modseclogc/issues\n\n\nInstallation\n============\n\n.. code:: bash\n\n $ pip install modseclogc\n\n\nExamples\n========\n\nView a request by unique ID:\n\n.. code:: text\n\n $ modseclogc --match-id VtU2o38AAQEAAEV6AuwAAAAE modsec.log\n --fc565b0b-A--\n [01/Mar/2016:06:28:51 +0000] VtU2o38AAQEAAEV6AuwAAAAE 127.0.0.1 34882 127.0.0.1 80\n\n [...snip...]\n\n --fc565b0b-Z--\n\nDisplay request IDs that match a path glob:\n\n.. code:: text\n\n $ modseclogc --match-path /path/to/resource/** --show-id modsec.log\n VtU2o38AAQEAAEV6Au0AAAAE\n VtU2o38AAQEAAEV6AuwAAAAE\n VtU2o38AAQEAAEV5BIgAAAAK\n\nDisplay the request line and the request payload (modsec audit part\n\"C\") of each audit record:\n\n.. code:: text\n\n $ modseclogc --show-request-line --show-parts C modsec.log\n OPTIONS /path/to/resource HTTP/1.1\n GET /path/to/resource HTTP/1.1\n POST /path/to/resource HTTP/1.1\n --40382b65-C--\n query=foo+bar&page=1\n\n GET /path/to/resource HTTP/1.1\n\nGenerate a copy of the audit excluding the payloads (modsec audit part\n\"C\") for a specific path glob, and compress the output:\n\n.. code:: text\n\n $ zcat modsec_audit.log.gz \\\n | modseclogc \\\n --match-path /path/to/resource/** --hide-parts C \\\n --unmatched keep \\\n | gzip -9 > clean-modsec_audit.log.gz\n\n\nDetails\n=======\n\n* By default, all input records are matched. This is modified via the\n ``--match-*`` and ``--inverse`` arguments.\n\n* By default, all unmatched records are dropped. This is modified via\n the ``--unmatched`` argument.\n\n* Output operations (show, hide, etc) only apply to matched records\n (note that the ``--inverse`` argument inverts the matching\n algorithm, not this rule).\n\n* The audit log must be in ``Native`` format (see the\n ``SecAuditLogFormat`` modsec option).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/metagriffin/modseclogc", "keywords": "modsecurity audit log manipulate analyze command-line library", "license": "GPLv3+", "maintainer": null, "maintainer_email": null, "name": "modseclogc", "package_url": "https://pypi.org/project/modseclogc/", "platform": "any", "project_url": "https://pypi.org/project/modseclogc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/metagriffin/modseclogc" }, "release_url": "https://pypi.org/project/modseclogc/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A tool to manipulate and analyze ModSecurity audit log files.", "version": "0.1.0" }, "last_serial": 2017076, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3991e9abbd36b49682ef3c9f87c69945", "sha256": "6548cd9fd651f952f524e1b7079fe67bc6b213a4492a48c8162edcba080625ac" }, "downloads": -1, "filename": "modseclogc-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3991e9abbd36b49682ef3c9f87c69945", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23753, "upload_time": "2016-03-20T16:18:41", "url": "https://files.pythonhosted.org/packages/98/37/d4855f4ebe348563c96e1f36c07fed7f6d3973edf4bea38864f5aa74081d/modseclogc-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3991e9abbd36b49682ef3c9f87c69945", "sha256": "6548cd9fd651f952f524e1b7079fe67bc6b213a4492a48c8162edcba080625ac" }, "downloads": -1, "filename": "modseclogc-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3991e9abbd36b49682ef3c9f87c69945", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23753, "upload_time": "2016-03-20T16:18:41", "url": "https://files.pythonhosted.org/packages/98/37/d4855f4ebe348563c96e1f36c07fed7f6d3973edf4bea38864f5aa74081d/modseclogc-0.1.0.tar.gz" } ] }