{ "info": { "author": "Chris McClymont", "author_email": "chris@mcclymont.it", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Topic :: System :: Logging", "Topic :: Utilities" ], "description": "gelfclient\n==========\n\nPython client for sending UDP messages in Graylog Extended Log Format\n(GELF).\n\nMessages are zlib compressed, and support GELF chunked encoding.\n\nSince messages are sent with UDP, the log method should return quickly\nand not raise an exception due to timeout. However an exception may be\nraised due to a DNS name resolution failure for the target hostname.\n\nInstallation\n============\n\npip install gelfclient\n\nUsage\n=====\n\n::\n\n from gelfclient import UdpClient\n\n gelf_server = 'localhost'\n\n # Using mandatory arguments\n gelf = UdpClient(gelf_server)\n\n # Using all arguments\n gelf = UdpClient(gelf_server, port=12202, mtu=8000, source='macbook.local')\n\n # Bare minimum is to send a string, which will map to gelf['short_message']\n gelf.log('server is DOWN')\n\n # 'source' and 'host' are the same. Defaults to socket.gethostname() but can be overridden\n gelf.log('server is DOWN', source='hostchecker')\n\n # Set extra fields\n gelf.log('status change', _state='DOWN', _server='macbook')\n\n # Set severity level\n import syslog\n gelf.log('unexpected error', level=syslog.LOG_CRIT)\n\n # You can also prepare all data into a dictionary and give that to .log\n data = {}\n data['short_message'] = 'warning from python'\n data['host'] = 'hostchecker'\n data['level'] = syslog.LOG_WARNING\n gelf.log(data)\n\nSee the GELF specification for other fields and their meaning:\nhttp://docs.graylog.org/en/latest/pages/gelf.html#gelf-format-specification\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/orionvm/python-gelfclient", "keywords": "gelf", "license": "Apache v2", "maintainer": "", "maintainer_email": "", "name": "gelfclient", "package_url": "https://pypi.org/project/gelfclient/", "platform": "", "project_url": "https://pypi.org/project/gelfclient/", "project_urls": { "Homepage": "http://github.com/orionvm/python-gelfclient" }, "release_url": "https://pypi.org/project/gelfclient/0.0.7/", "requires_dist": null, "requires_python": "", "summary": "A UDP client for sending message in the Graylog Extended Log Format (GELF)", "version": "0.0.7" }, "last_serial": 3566403, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "3b57d33c0433bd221971f470ccf41378", "sha256": "7c813dbf92c493f2f9b915bcee293eceebb3695059b10b4b12b742340d848849" }, "downloads": -1, "filename": "gelfclient-0.0.3.tar.gz", "has_sig": false, "md5_digest": "3b57d33c0433bd221971f470ccf41378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6649, "upload_time": "2014-06-06T01:52:09", "url": "https://files.pythonhosted.org/packages/73/f1/7049b41a78328db640c65a04f829a62f65895166ab996945ac190a234f73/gelfclient-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "833791038e555a7a3fa74a608efc0ba7", "sha256": "01c8c7e3dec4ec30e15c58127e9b64d155d732cc1ba712645ff58b9fdb29a22c" }, "downloads": -1, "filename": "gelfclient-0.0.4.tar.gz", "has_sig": false, "md5_digest": "833791038e555a7a3fa74a608efc0ba7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6786, "upload_time": "2016-02-17T05:18:14", "url": "https://files.pythonhosted.org/packages/ba/de/676cd2e6dc55d9a30200d7c4fedf96218233061c01cae6141a49286e4e53/gelfclient-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "340161dd02feda85ab8e8424dab49dd4", "sha256": "06bd41ee56cd734c5cd1ad6b78ef3e730194099be14a8e1f832b076469b881a8" }, "downloads": -1, "filename": "gelfclient-0.0.5.tar.gz", "has_sig": false, "md5_digest": "340161dd02feda85ab8e8424dab49dd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6913, "upload_time": "2017-05-02T03:34:36", "url": "https://files.pythonhosted.org/packages/72/d2/feaae5f1c2503da0d1039d2447082560e66470d6791298dcd5508f66061b/gelfclient-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "3c882e72a1fde759672da1d13f68c572", "sha256": "12ca9ed8bdda6117107653d3e5192060b3a8c192868ee0a289305df2467c8ce4" }, "downloads": -1, "filename": "gelfclient-0.0.6.tar.gz", "has_sig": false, "md5_digest": "3c882e72a1fde759672da1d13f68c572", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6912, "upload_time": "2018-02-09T07:14:33", "url": "https://files.pythonhosted.org/packages/0c/ce/7b46bfa41570dfd433932ef6310bfecae5c4353a3a3100dc398768e8d11d/gelfclient-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "5c80e89dab7bed819b2dee72ca781cc0", "sha256": "ace3d5718a5e844145090a5d31ed05c5fb7edd4057d00366038d8ebe6247178e" }, "downloads": -1, "filename": "gelfclient-0.0.7.tar.gz", "has_sig": false, "md5_digest": "5c80e89dab7bed819b2dee72ca781cc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6869, "upload_time": "2018-02-09T07:36:47", "url": "https://files.pythonhosted.org/packages/a0/2d/777339ff87624bfb014fd4f28e324d572a612a2291d53d797702e971b83d/gelfclient-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5c80e89dab7bed819b2dee72ca781cc0", "sha256": "ace3d5718a5e844145090a5d31ed05c5fb7edd4057d00366038d8ebe6247178e" }, "downloads": -1, "filename": "gelfclient-0.0.7.tar.gz", "has_sig": false, "md5_digest": "5c80e89dab7bed819b2dee72ca781cc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6869, "upload_time": "2018-02-09T07:36:47", "url": "https://files.pythonhosted.org/packages/a0/2d/777339ff87624bfb014fd4f28e324d572a612a2291d53d797702e971b83d/gelfclient-0.0.7.tar.gz" } ] }