{ "info": { "author": "Sinval Vieira", "author_email": "sinvalneto01@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "Glog-CLI\n===============================\n\n* Free software: Apache Software License 2.0\n\nGlog-CLI is an open source command line interface for Graylog2.\n\nInstalation\n--------\nTry:\n\n\tpip install glogcli\n\nor:\n\n\teasy_install glogcli\n\nor you can even install it from a GitHub clone:\n\n\tgit clone https://github.com/globocom/glog-cli\n\tcd glog-cli/\n\tpip install . -r requirements.txt\n\nUsage\n--------\nGlog-CLI enables you to make searches using the official Graylog query language. To understand how to make queries \nplease see the documentation [http://docs.graylog.org/en/2.1/pages/queries.html].\n\nOnce you've installed the tool now it's time to run some commands, the following:\n\n> glogcli -h mygraylog.server.com -u john.doe -p password -@ \"10 minutes ago\" \"source:my-app-server\"\n\n-\n\n> glogcli -h mygraylog.server.com -u john.doe -p password \"message:200\"\n\n-\n\n> glogcli -h mygraylog.server.com -u john.doe -p password -f\n\n-\n\n> glogcli -h mygraylog.server.com -u john.doe -p password \"level:DEBUG\"\n\n-\n\n> glogcli -h mygraylog.server.com -u john.doe -p password \"level:DEBUG\" -f\n\n-\n\n> glogcli -h mygraylog.server.com -u john.doe -p password \"level:DEBUG\" -d --fields timestamp,level,message -o dump.csv\n\n-\n\n> glogcli -h mygraylog.server.com -u john-doe -p password -@ \"2016-11-21 00:00:00\" -# \"2016-11-21 01:00:00\" 'message:blabla'\n\n-\n\n> glogcli -e dev -r short\n\n-\n\n> glogcli -e dev -r short -st mystreamid\n\n-\n\n> glogcli -e dev -r short -st '*'\n\n\n\nConfiguration\n--------\n\nGlog-CLI can reuse some common configurations like address of your Graylog server and your credentials, it will look for a\n*~/.glogcli.cfg* or a *glogcli.cfg* (in your current directory). Glog-CLI will use default environment and format \nwhenever an environment or format is omitted.\n\nHere is a example for your glogcli.cfg file:\n\n [environment:default]\n host=mygraylogserver.com\n port=443\n username=john.doe\n\n [environment:dev]\n host=mygraylogserver.dev.com\n port=443\n proxy=mycompanyproxy.com\n username=john.doe\n default_stream=57e14cde6fb78216a60d35e8\n\n [format:default]\n format={host} {level} {facility} {timestamp} {message}\n \n [format:short]\n format=[{timestamp}] {level} {message}\n \n [format:long]\n format=time: [{timestamp}] level: {level} msg: {message} tags: {tags}\n color=false\n\nPlease run the *help* command to more detailed information about all the client features.\n\t\n\tUsage: glogcli [OPTIONS] [QUERY]\n\n\tOptions:\n\t -v, --version Prints your glogcli version\n\t -h, --host TEXT Your graylog node's host\n\t -e, --environment TEXT Label of a preconfigured graylog node\n\t -sq, --saved-query List user saved queries for selection\n\t --port TEXT Your graylog port\n\t --no-tls Not use TLS to connect to Graylog server\n\t -u, --username TEXT Your graylog username\n\t -p, --password TEXT Your graylog password (default: prompt)\n\t -k, --keyring / -nk, --no-keyring\n\t Use keyring to store/retrieve password\n\t -@, --search-from TEXT Query range from\n\t -#, --search-to TEXT Query range to (default: now)\n\t --tail Show the last n lines for the query\n\t (default)\n\t -d, --dump Print the query result as a csv\n\t --fields TEXT Comma separated fields to be printed in the\n\t csv.\n\t -o, --output TEXT Output logs to file (only tail/dump mode)\n\t -f, --follow Poll the logging server for new logs\n\t matching the query (sets search from to now,\n\t limit to None)\n\t -n, --limit INTEGER Limit the number of results (default: 100)\n\t -a, --latency INTEGER Latency of polling queries (default: 2)\n\t -st, --stream TEXT Stream ID of the stream to query (default:\n\t no stream filter)\n\t -s, --sort TEXT Field used for sorting (default: timestamp)\n\t --asc / --desc Sort ascending / descending\n\t --proxy TEXT Proxy to use for the http/s request\n\t -r, --format-template TEXT Message format template for the log\n\t (default: default format\n\t --no-color Don't show colored logs\n\t -c, --config TEXT Custom config file path\n\t --help Show this message and exit.\n\n\n=======\nHistory\n=======\n\n0.1.0 (2016-09-21)\n------------------\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/globocom/glog-cli/tarball/0.8.3", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/globocom/glog-cli", "keywords": "glogcli", "license": "Apache Software License 2.0", "maintainer": null, "maintainer_email": null, "name": "glogcli", "package_url": "https://pypi.org/project/glogcli/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/glogcli/", "project_urls": { "Download": "https://github.com/globocom/glog-cli/tarball/0.8.3", "Homepage": "https://github.com/globocom/glog-cli" }, "release_url": "https://pypi.org/project/glogcli/0.8.3/", "requires_dist": null, "requires_python": null, "summary": "Graylog command line interface.", "version": "0.8.3" }, "last_serial": 2728692, "releases": { "0.8.0": [ { "comment_text": "", "digests": { "md5": "664116d23a698ee599b08c75290b9685", "sha256": "ac2cd1a5b2fe588607e893cbbc4dc6470b1fd4b411b616d1d35abbab9be0651b" }, "downloads": -1, "filename": "glogcli-0.8.0.tar.gz", "has_sig": false, "md5_digest": "664116d23a698ee599b08c75290b9685", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29605, "upload_time": "2016-12-08T18:07:00", "url": "https://files.pythonhosted.org/packages/a2/13/684d1dd8de6727a5e17ea4d164d668d71e6182137b800d0afc5bd2b3711e/glogcli-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "a8133e3cbd4315cf4871698cb39b3d4a", "sha256": "fdfc426f5505f5fd6c404639bb58ba92b6da89170b8e667f93995d2ba8e08d03" }, "downloads": -1, "filename": "glogcli-0.8.1.tar.gz", "has_sig": false, "md5_digest": "a8133e3cbd4315cf4871698cb39b3d4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29565, "upload_time": "2016-12-08T20:01:20", "url": "https://files.pythonhosted.org/packages/0c/3b/3dca43319a87f55fdd0bf2640d7254fa3bd5ac93b3d67f0f0e653af95e03/glogcli-0.8.1.tar.gz" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "74851f3adb01528f636dc0e7c9739b22", "sha256": "c7a41a1ada76a596e0402c14375f05b799c4812d75712010fd8be8ddd5145736" }, "downloads": -1, "filename": "glogcli-0.8.2.tar.gz", "has_sig": false, "md5_digest": "74851f3adb01528f636dc0e7c9739b22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29587, "upload_time": "2016-12-28T12:14:18", "url": "https://files.pythonhosted.org/packages/63/0b/eef46d50bf47972557ed2787267e1ba4dcbc202fbbc1764b2206e6262de9/glogcli-0.8.2.tar.gz" } ], "0.8.3": [ { "comment_text": "", "digests": { "md5": "b4cc1aa508cd563a628b417856b82739", "sha256": "3e51315d83158bedc289e57150223a54ed11335e9886a33171abaeb5bc5dfe8d" }, "downloads": -1, "filename": "glogcli-0.8.3.tar.gz", "has_sig": false, "md5_digest": "b4cc1aa508cd563a628b417856b82739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29689, "upload_time": "2017-03-24T16:52:42", "url": "https://files.pythonhosted.org/packages/69/eb/5d32a2e04e13b7cf7a4b90909255aad5711806bb6da6ebc49bffe74940c3/glogcli-0.8.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4cc1aa508cd563a628b417856b82739", "sha256": "3e51315d83158bedc289e57150223a54ed11335e9886a33171abaeb5bc5dfe8d" }, "downloads": -1, "filename": "glogcli-0.8.3.tar.gz", "has_sig": false, "md5_digest": "b4cc1aa508cd563a628b417856b82739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29689, "upload_time": "2017-03-24T16:52:42", "url": "https://files.pythonhosted.org/packages/69/eb/5d32a2e04e13b7cf7a4b90909255aad5711806bb6da6ebc49bffe74940c3/glogcli-0.8.3.tar.gz" } ] }