{ "info": { "author": "Isman Firmansyah", "author_email": "isman.firmansyah@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Flosculus\n=========\n\nFlosculus is a **work-in-progress** script to tail rotated log file, parse each line, and send it to Fluentd.\nIt is intended to replace a subset of Fluentd ``in_tail`` features.\n\nCrash Course\n------------\n\nFirst things first, install Flosculus into your Python path.\n\n.. code-block:: sh\n\n $ git clone git://github.com/iromli/flosculus.git\n $ cd flosculus\n $ python setup.py install\n\nAfterwards you need to create a configuration file to run the ``flosculusd`` event loop.\nThe convenient way to do this boring thing is by invoking the ``flosculusd --init > flosculus.ini`` command.\nHere's an example of ``flosculus.ini`` (you can call it whatever you like):\n\n.. code-block:: ini\n\n [flosculus]\n ; the IP address (or host name) of the remote server\n remote_host = 127.0.0.1\n\n ; the TCP port of the remote server\n remote_port = 24224\n\n\n ; Each section with `path:/path/to/log` is a valid config\n [log:/var/log/nginx/access.log]\n\n ; the label\n tag = example.api.access\n\n ; format to use, either use 'nginx' or custom regex\n format = nginx\n\nBy default, the ``format`` option is matched against **nginx** default access log format.\nYou may change the format as long as using a valid Python regex.\n\n.. code-block:: ini\n\n [log:/var/log/nginx/access.log]\n\n format = (?P[^ ]*) (?P[^ ]*) (?P[^ ]*) \\[(?P