{ "info": { "author": "Mariano Ruiz", "author_email": "mrsarm@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License (GPL)", "License :: Public Domain", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Database" ], "description": "Mongotail\n=========\n\n.. image:: docs/images/mongotail-console.png\n\nMongotail, Log all `MongoDB `_ queries in a *\"tail\"able* way.\n\n``mongotail`` is a command line tool to outputs any operation from a Mongo\ndatabase in the standard output. You can see the operations collected by the\ndatabase profiler from a console, or redirect the result to a file, pipes\nit with ``grep`` or other command line tool, etc.\n\nThe syntax is very similar to ``mongo`` client, and the output, as like\n``tail`` command will be the latest 10 lines of logging.\n\nBut the more interesting feature (also like ``tail``) is to see the changes\nin *\"real time\"* with the ``-f`` option, and occasionally filter the result\nwith ``grep`` to find a particular operation.\n\nSyntax\n------\n\nUsage::\n\n mongotail [db address] [options]\n\n\"db address\" can be:\n\n+----------------------+-------------------------------------------------------------+\n| foo | foo database on local machine (IPv4 connection) |\n+----------------------+-------------------------------------------------------------+\n| :1234/foo | foo database on local machine on port 1234 |\n+----------------------+-------------------------------------------------------------+\n| 192.169.0.5/foo | foo database on 192.168.0.5 machine |\n+----------------------+-------------------------------------------------------------+\n| remotehost/foo | foo database on *remotehost* machine |\n+----------------------+-------------------------------------------------------------+\n| 192.169.0.5:9999/foo | foo database on 192.168.0.5 machine on port 9999 |\n+----------------------+-------------------------------------------------------------+\n| \"[::1]:9999/foo\" | foo database on ::1 machine on port 9999 (IPv6 connection) |\n+----------------------+-------------------------------------------------------------+\n\n\nOptional arguments:\n\n-u USERNAME, --username USERNAME\n username for authentication\n-p PASSWORD, --password PASSWORD\n password for authentication. If username is given and\n password isn't, it's asked from tty\n-b AUTH_DATABASE, --authenticationDatabase AUTH_DATABASE\n database to use to authenticate the user. If not\n specified, the user will be authenticated against the\n database specified in the [db address]\n-n N, --lines N output the last N lines, instead of the last 10. Use\n ALL value to show all lines\n-f, --follow output appended data as the log grows\n-l LEVEL, --level LEVEL\n specifies the profiling level, which is either 0 for\n no profiling, 1 for only slow operations, or 2 for all\n operations. Or use with 'status' word to show the\n current level configured. Uses this option once before\n logging the database\n-s MS, --slowms MS sets the threshold in milliseconds for the profile to\n consider a query or operation to be slow (use with\n `--level 1`). Or use with 'status' word to show the\n current milliseconds configured\n-m, --metadata extra metadata fields to show. Known fields (may vary\n depending of the operation and the MongoDB version):\n millis, nscanned, docsExamined, execStats, lockStats ...\n-i, --info get information about the MongoDB server we're connected to\n-v, --verbose verbose mode (not recommended). All the operations will\n printed in JSON without format and with all the\n information available from the log\n--ssl creates the connection to the server using SSL\n--sslCertFile SSL_CERT_FILE\n certificate file used to identify the local connection\n against MongoDB\n--sslKeyFile SSL_KEY_FILE\n private keyfile used to identify the local connection\n against MongoDB. If included with the certfile then\n only the sslCertFile is needed\n--sslCertReqs SSL_CERT_REQS\n specifies whether a certificate is required from the\n other side of the connection, and whether it will be\n validated if provided. It must be any of three values:\n 0 (certificate ignored), 1 (not required, but\n validated if provided), 2 (required and validated)\n--sslCACerts SSL_CA_CERTS\n file that contains a set of concatenated\n \"certification authority\" certificates, which are used\n to validate certificates passed from the other end of\n the connection\n--sslPEMPassword SSL_PEM_PASSPHRASE\n password or passphrase for decrypting the private key\n in sslCertFile or sslKeyFile. Only necessary if the\n private key is encrypted\n--sslCrlFile SSL_CRLFILE\n path to a PEM or DER formatted certificate revocation\n list\n-h, --help show this help message and exit\n-V, --version show program's version number and exit\n\n\nEnabling Database Profiling and Showing Logs\n--------------------------------------------\n\nYou have to activate first in the current database the\n`profiler `_,\nso MongoDB will capture all the activity in a special document that is read by Mongotail.\n\nYou can achieve this with ``-l, --level`` option. For example, if you want to see the logs\nfrom MYDATABASE, first you have to execute this::\n\n $ mongotail MYDATABASE -l 2\n\nThen you can see the latest lines of logging with::\n\n $ mongotail MYDATABASE\n 2015-02-24 19:17:01.194 QUERY [Company] : {\"_id\": ObjectId(\"548b164144ae122dc430376b\")}. 1 returned.\n 2015-02-24 19:17:01.195 QUERY [User] : {\"_id\": ObjectId(\"549048806b5d3db78cf6f654\")}. 1 returned.\n 2015-02-24 19:17:01.196 UPDATE [Activation] : {\"_id\": \"AB524\"}, {\"_id\": \"AB524\", \"code\": \"f2cbad0c\"}. 1 updated.\n 2015-02-24 19:17:10.729 COUNT [User] : {\"active\": {\"$exists\": true}, \"firstName\": {\"$regex\": \"mac\"}}\n ...\n\nTo Connect with SSL or a remote Mongo instance, check the options with ``mongotail --help`` command.\n\n**NOTE**: The level chosen can affect performance. It also can allow the\nserver to write the contents of queries to the log, which might have\ninformation security implications for your deployment. Remember to setup your\ndatabase profiling level to ``0`` again after debugging your data::\n\n $ mongotail MYDATABASE -l 0\n\nA *step-by-step* guide of how to use Mongotail and the latest features\nis `here `_.\n\n\nInstallation\n------------\n\nSee ``_ guide to install from sources. To install\nfrom `PyPI repositories `_,\nfollow these instructions depending of your OS:\n\n\nLinux Installation\n^^^^^^^^^^^^^^^^^^\n\nYou can install the latest stable version with ``pip`` in your\nenvironment with::\n\n $ pip install mongotail\n\nExecute this command with administrator/root privileges (in\nDebian/Ubuntu Linux distribution prepend ``sudo`` to the command).\n\nYou have to be installed ``pip`` tool first. In Debian/Ubuntu Linux\ndistribution you can install it with (also with root privileges)::\n\n $ apt-get install python-pip\n\n\nMac OSX Installation\n^^^^^^^^^^^^^^^^^^^^\n\nFirst you need to install the Python package manager ``pip`` in\nyour environment, and then like Linux to install Mongotail you\ncan execute ``sudo pip install mongotail`` from the command line,\nbut also it can be installed with ``easy_install``, an\nold Python package manager present in most OSX versions. Try this::\n\n $ sudo easy_install mongotail\n\n\nDocker\n^^^^^^\n\nRun with Docker (you don't need to download the source code)::\n\n $ docker run -it --rm fgribreau/mongotail --help\n\nIf you want to connect with a database also running locally in a\ncontainer, you have to link both instances (see howto in the Docker\ndocumentation), or if the db is a local instance running without\nDocker, remember to use the local IP of your computer because the\n``localhost`` address (IP 127.0.0.1) points to the container, not to\nyour host. Eg.::\n\n $ docker run -it --rm fgribreau/mongotail 192.168.0.21/test\n\n\nAbout\n-----\n\nProject: https://github.com/mrsarm/mongotail\n\nAuthors: (2015-2017) Mariano Ruiz \n\nChangelog: ``_\n\nMore guides: http://mrsarm.blogspot.com.ar/search/label/Mongotail\n\nLicense: GPL-3\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/mrsarm/mongotail/tarball/2.3.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mrsarm/mongotail", "keywords": "", "license": "GPL-3", "maintainer": "", "maintainer_email": "", "name": "mongotail", "package_url": "https://pypi.org/project/mongotail/", "platform": "any", "project_url": "https://pypi.org/project/mongotail/", "project_urls": { "Download": "https://github.com/mrsarm/mongotail/tarball/2.3.0", "Homepage": "https://github.com/mrsarm/mongotail" }, "release_url": "https://pypi.org/project/mongotail/2.3.0/", "requires_dist": [ "pymongo (>=2.8)", "res-address" ], "requires_python": "", "summary": "Mongotail, Log all MongoDB queries in a \"tail\"able way.", "version": "2.3.0" }, "last_serial": 4948985, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1c20a54fd16cbda3f37371ff96cc7053", "sha256": "69853946f6d3c6e887941c3199844aa11606d850fd697af9af7415426099ca4b" }, "downloads": -1, "filename": "mongotail-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1c20a54fd16cbda3f37371ff96cc7053", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18652, "upload_time": "2015-02-24T06:22:13", "url": "https://files.pythonhosted.org/packages/0d/e8/1b8ef56957ebe5d56be03da6204ffb285e3129d56cc963796ef98c26de93/mongotail-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "2dd69da3384d0d5730d621e672774bcf", "sha256": "e05f256bfca19ac61e18ebe39a3ec24337936bfa18c8255fdc592191a16e9a3a" }, "downloads": -1, "filename": "mongotail-0.2.0.tar.gz", "has_sig": false, "md5_digest": "2dd69da3384d0d5730d621e672774bcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19682, "upload_time": "2015-03-12T03:29:48", "url": "https://files.pythonhosted.org/packages/68/7e/30b9a85085a0ff26327779dc8499f24e8663771a485f36320d4da99a750f/mongotail-0.2.0.tar.gz" } ], "0.3.0": [], "0.3.1": [ { "comment_text": "", "digests": { "md5": "efd075d2e32cbaaaabfe4e8178a67604", "sha256": "de2de2071c8d245c96e4d64359c40fc66a3ce3181deafce78b987ed243b76ed8" }, "downloads": -1, "filename": "mongotail-0.3.1.tar.gz", "has_sig": false, "md5_digest": "efd075d2e32cbaaaabfe4e8178a67604", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20500, "upload_time": "2015-03-31T13:30:35", "url": "https://files.pythonhosted.org/packages/a7/19/f2168f7ff5a4d04ebe25a5216aa90863dfa847ce0ae8d41d6cef27f5609d/mongotail-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "afe65a9aee38dea594dcccec22e33269", "sha256": "db56c40f765cc019095c0a81ffd4b9bf6b880032bc38888c3ff29049c3b85cc5" }, "downloads": -1, "filename": "mongotail-0.3.2.tar.gz", "has_sig": false, "md5_digest": "afe65a9aee38dea594dcccec22e33269", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21111, "upload_time": "2015-04-11T14:28:41", "url": "https://files.pythonhosted.org/packages/d3/2e/1de8bcddd2ae499424ded6d6f8f9500c54a0767fa91c56cb37de196a671e/mongotail-0.3.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "b29d114273aa8c87c0642e7e50873105", "sha256": "791811805c3070759386fc291a91cac1a1e330649de68eac534ac0a87c14e846" }, "downloads": -1, "filename": "mongotail-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b29d114273aa8c87c0642e7e50873105", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21514, "upload_time": "2015-08-30T19:52:17", "url": "https://files.pythonhosted.org/packages/bd/c9/1b8486bc85ddb0a36b41789774ff43c45f0b4a45c36212f1937e8b8c0408/mongotail-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3daa9ff0c96620610baafbc3be0a3f05", "sha256": "20829fe1b72ada41813425c594eaf6a02d73759d26d3ddece24f3de518ea09a3" }, "downloads": -1, "filename": "mongotail-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3daa9ff0c96620610baafbc3be0a3f05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21765, "upload_time": "2015-09-25T02:38:18", "url": "https://files.pythonhosted.org/packages/0c/f7/f346059c86d2a6eb4e35ed6dfc9527c99be677d7f237175d976b03c48fd2/mongotail-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "b07002c7e1835b552b8e9d098c5fd458", "sha256": "89b2d16ba099346a47ba3e4d79f753232f195a4b5b05d753219e9779ec2baca5" }, "downloads": -1, "filename": "mongotail-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b07002c7e1835b552b8e9d098c5fd458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21946, "upload_time": "2015-10-03T17:40:04", "url": "https://files.pythonhosted.org/packages/0f/b6/ae556f8dbfe7b96ee5b23296b6c7daaea4af52412c0f190e5ccf74a5e305/mongotail-1.1.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "51ec8e9c202133fadadb96addbdbc776", "sha256": "29ccfbc23fb17339febec15c99e575d508a4686bccdf1453ac961e10d667ff53" }, "downloads": -1, "filename": "mongotail-2.0.0.tar.gz", "has_sig": false, "md5_digest": "51ec8e9c202133fadadb96addbdbc776", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24353, "upload_time": "2016-07-19T03:33:34", "url": "https://files.pythonhosted.org/packages/d1/ae/2715dc6402c15e87856e3d73cdbf6a85bb99163858b2d500d903a2a588ea/mongotail-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "22be638546f5c193fd2fea6e238662a1", "sha256": "ac670be69d144e3572fee8b77f8fda8947fb00ee8d9e8121986fb68a8ca9a6bb" }, "downloads": -1, "filename": "mongotail-2.0.1.tar.gz", "has_sig": false, "md5_digest": "22be638546f5c193fd2fea6e238662a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24686, "upload_time": "2016-08-10T23:44:11", "url": "https://files.pythonhosted.org/packages/98/5e/6f67379900ff1c4f03f9fe1feabd0b6996303e6ae710276bcd46ad919daa/mongotail-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "545f88ed2cd45513abb43a36542ca2d7", "sha256": "dcafdb14d299df545fca59b5afa3388e0fadeaa5c9e4ab3ff58d571d02c32ab1" }, "downloads": -1, "filename": "mongotail-2.0.2.tar.gz", "has_sig": false, "md5_digest": "545f88ed2cd45513abb43a36542ca2d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24833, "upload_time": "2016-09-28T23:46:44", "url": "https://files.pythonhosted.org/packages/62/77/2427124b46f6790dc510af5502beb76f21ef24c207886db7518e1e328fa1/mongotail-2.0.2.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "6196a4522872d87c0419837e7bcc49c9", "sha256": "7431bb2705f81f4fd0ebcbaef657ab18943ab8274e07393425353f33733d432b" }, "downloads": -1, "filename": "mongotail-2.1.0.tar.gz", "has_sig": false, "md5_digest": "6196a4522872d87c0419837e7bcc49c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25231, "upload_time": "2017-01-14T05:12:01", "url": "https://files.pythonhosted.org/packages/8c/29/63784df2e73cb9974a142257beea61dc1d863ffc7f3475cc90af4478b905/mongotail-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "f1c52e128aaa9ac2a8ae3ccf9cba00f0", "sha256": "cab561dcbbb4dfb910a008a54098fc90973e79746bbedc12699474e15e5ee454" }, "downloads": -1, "filename": "mongotail-2.1.1.tar.gz", "has_sig": false, "md5_digest": "f1c52e128aaa9ac2a8ae3ccf9cba00f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25325, "upload_time": "2017-01-20T12:01:40", "url": "https://files.pythonhosted.org/packages/91/ea/6c75a1cc7f3d5e4e51b5dd1f87052292c38efc95f6a32ce49a996f573f05/mongotail-2.1.1.tar.gz" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "de99d668387473ca7e201d64de872527", "sha256": "4a3cc28725797eaf0ffb2f089a57cdbb2d29fcc074df764b0f7b8d95c65e8316" }, "downloads": -1, "filename": "mongotail-2.1.2.tar.gz", "has_sig": false, "md5_digest": "de99d668387473ca7e201d64de872527", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25521, "upload_time": "2017-05-30T23:52:22", "url": "https://files.pythonhosted.org/packages/42/12/436ca98ef98e069f6acee73295881d1679554657a1717dbfcd123c862133/mongotail-2.1.2.tar.gz" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "a3bd4266ea9d5c1d52a5d773b332a9cd", "sha256": "99f93c7ffad60cffa42b7b3b7334609e2d527dc86650d262e73969029c761499" }, "downloads": -1, "filename": "mongotail-2.2.0.zip", "has_sig": false, "md5_digest": "a3bd4266ea9d5c1d52a5d773b332a9cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33593, "upload_time": "2018-02-11T04:07:17", "url": "https://files.pythonhosted.org/packages/0a/29/ef61cae4940662d6c9fe0c0211583d92b1edafed044d1cdd407506e5b8af/mongotail-2.2.0.zip" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "3c9ede3c7fb873ea9340e54bbf7ccf15", "sha256": "ea6c1a9b19d84ba9204dd603f1402cd1035370d96e26f5085adc54106896ee3a" }, "downloads": -1, "filename": "mongotail-2.3.0-py3.6.egg", "has_sig": false, "md5_digest": "3c9ede3c7fb873ea9340e54bbf7ccf15", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 26746, "upload_time": "2019-03-16T22:54:09", "url": "https://files.pythonhosted.org/packages/bc/05/482a137d78493716c8b64dd007e77d1c56e6690213721f481bc627c61e3a/mongotail-2.3.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "6842275972b42ab62f72474854e0ad71", "sha256": "7a55a2f3a3fdf4621c5d3c43f6496e9da014d2424fd6d151d17f3865ca75be17" }, "downloads": -1, "filename": "mongotail-2.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6842275972b42ab62f72474854e0ad71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28616, "upload_time": "2019-03-16T22:54:07", "url": "https://files.pythonhosted.org/packages/7c/41/74946e2baa3051b9e4989aea8c1d32df3bde8795260d24266dc7a4da3561/mongotail-2.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "700cc6340538556673f58601c2e994c0", "sha256": "1e72b4b8f078a217915bd1989be39c8687fa823509c94537b2d026606a84371a" }, "downloads": -1, "filename": "mongotail-2.3.0.tar.gz", "has_sig": false, "md5_digest": "700cc6340538556673f58601c2e994c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29459, "upload_time": "2019-03-16T22:54:11", "url": "https://files.pythonhosted.org/packages/2f/b2/7b85b771b3a053f549bc20017a5eed4260c8d9e17d14da8895f984c0f727/mongotail-2.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c9ede3c7fb873ea9340e54bbf7ccf15", "sha256": "ea6c1a9b19d84ba9204dd603f1402cd1035370d96e26f5085adc54106896ee3a" }, "downloads": -1, "filename": "mongotail-2.3.0-py3.6.egg", "has_sig": false, "md5_digest": "3c9ede3c7fb873ea9340e54bbf7ccf15", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 26746, "upload_time": "2019-03-16T22:54:09", "url": "https://files.pythonhosted.org/packages/bc/05/482a137d78493716c8b64dd007e77d1c56e6690213721f481bc627c61e3a/mongotail-2.3.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "6842275972b42ab62f72474854e0ad71", "sha256": "7a55a2f3a3fdf4621c5d3c43f6496e9da014d2424fd6d151d17f3865ca75be17" }, "downloads": -1, "filename": "mongotail-2.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6842275972b42ab62f72474854e0ad71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28616, "upload_time": "2019-03-16T22:54:07", "url": "https://files.pythonhosted.org/packages/7c/41/74946e2baa3051b9e4989aea8c1d32df3bde8795260d24266dc7a4da3561/mongotail-2.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "700cc6340538556673f58601c2e994c0", "sha256": "1e72b4b8f078a217915bd1989be39c8687fa823509c94537b2d026606a84371a" }, "downloads": -1, "filename": "mongotail-2.3.0.tar.gz", "has_sig": false, "md5_digest": "700cc6340538556673f58601c2e994c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29459, "upload_time": "2019-03-16T22:54:11", "url": "https://files.pythonhosted.org/packages/2f/b2/7b85b771b3a053f549bc20017a5eed4260c8d9e17d14da8895f984c0f727/mongotail-2.3.0.tar.gz" } ] }