{ "info": { "author": "Ryan Currah", "author_email": "ryan@currah.ca", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "[![Build Status](https://travis-ci.org/ryancurrah/searchsplunk.svg?branch=master)](https://travis-ci.org/ryancurrah/searchsplunk) [![Coverage Status](https://coveralls.io/repos/github/ryancurrah/searchsplunk/badge.svg?branch=master)](https://coveralls.io/github/ryancurrah/searchsplunk?branch=master)\n\n\n# Search Splunk\n\nEasily create Splunk searches from Python and get the result as a Python object\n\n# Requires\n\n- requests>=2.7.0: https://pypi.python.org/pypi/requests\n\n# Installation instructions\n\n[Searchsplunk](https://pypi.python.org/pypi/searchsplunk) can be installed from PyPi.\n\n```bash\npip install searchsplunk\n```\n\n# Usage instructions\n\n```python\nfrom searchsplunk.searchsplunk import SearchSplunk\ns = SearchSplunk('https://splunk.acme.com:8089', 'MYUSER', 'MYPASS', ssl_verify=True)\nresult = s.search('sourcetype=salt:grains openstack_uid=e0303456c-d5a3-789f-ab68-8f27561ffa0f | dedup openstack_uid')\n\nimport json\nprint json.dumps(result, sort_keys=True, indent=2)\n{\n \"fields\": [\n {\n \"name\": \"_bkt\"\n },\n {\n \"name\": \"_cd\"\n },\n {\n \"name\": \"_indextime\"\n },\n {\n \"name\": \"_kv\"\n },\n {\n \"name\": \"_raw\"\n },\n {\n \"name\": \"_serial\"\n },\n {\n \"name\": \"_si\"\n },\n {\n \"name\": \"_sourcetype\"\n },\n {\n \"name\": \"_subsecond\"\n },\n {\n \"name\": \"_time\"\n },\n {\n \"name\": \"host\"\n },\n {\n \"name\": \"index\"\n },\n {\n \"name\": \"linecount\"\n },\n {\n \"name\": \"openstack_uid\"\n },\n {\n \"name\": \"source\"\n },\n {\n \"name\": \"sourcetype\"\n },\n {\n \"name\": \"splunk_server\"\n }\n ],\n \"init_offset\": 0,\n \"messages\": [],\n \"preview\": false,\n \"results\": [\n {\n \"_bkt\": \"main~1122~25B521A6-9612-407D-A1BA-F8KJSEBB7628\",\n \"_cd\": \"1122:290410720\",\n \"_indextime\": \"1435071966\",\n \"_kv\": \"1\",\n \"_raw\": \"somefile contents\",\n \"_serial\": \"0\",\n \"_si\": [\n \"splunkserv\",\n \"main\"\n ],\n \"_sourcetype\": \"salt:grains\",\n \"_time\": \"2015-06-23T11:06:05.000-04:00\",\n \"host\": \"server-7654.acme.com\",\n \"index\": \"main\",\n \"linecount\": \"17\",\n \"openstack_uid\": \"e0303456c-d5a3-789f-ab68-8f27561ffa0f\",\n \"source\": \"/etc/salt/grains\",\n \"sourcetype\": \"salt:grains\",\n \"splunk_server\": \"splunkmaster\"\n }\n ]\n}\n```\n\n## Contributors\n\n - [pkeeper](https://github.com/pkeeper)\n\n## Author\n\n[Ryan Currah](ryan@currah.ca)\n\n## License\n\nGPL v2", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ryancurrah/searchsplunk", "keywords": "splunk,search", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "searchsplunk", "package_url": "https://pypi.org/project/searchsplunk/", "platform": "", "project_url": "https://pypi.org/project/searchsplunk/", "project_urls": { "Homepage": "https://github.com/ryancurrah/searchsplunk" }, "release_url": "https://pypi.org/project/searchsplunk/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "Splunk search client", "version": "0.3.1" }, "last_serial": 3932330, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0857729dc71714c4c8840d8d52f7cfa7", "sha256": "468e9219713eca82a8bc03541c95cace765edca35d7c1a33a9cfecc54b73fa1c" }, "downloads": -1, "filename": "searchsplunk-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0857729dc71714c4c8840d8d52f7cfa7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5959, "upload_time": "2017-01-03T07:40:05", "url": "https://files.pythonhosted.org/packages/90/ea/dcc6ba29af1689ee32396e98121b27a86f2972fd6a7c973c286450f2f167/searchsplunk-0.1.0-py2.py3-none-any.whl" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1b12eeabe90db888ad356194a191f3e6", "sha256": "65f6d732db55c75265a8f5a5e58b7b3659a50e0279e8b1f9841da850f1be92b9" }, "downloads": -1, "filename": "searchsplunk-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1b12eeabe90db888ad356194a191f3e6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6092, "upload_time": "2017-01-03T18:54:06", "url": "https://files.pythonhosted.org/packages/e6/eb/c90547723a1913639949949196f5185e8e36cf0e379934e4752d9bdebc3e/searchsplunk-0.2.0-py2.py3-none-any.whl" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "63777a93e75656a602fc9e7dafc7a608", "sha256": "ccd32b8074a62a9a2d550770a415e7a7f20626ac1b475080da7a61313bcf5918" }, "downloads": -1, "filename": "searchsplunk-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "63777a93e75656a602fc9e7dafc7a608", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6089, "upload_time": "2017-01-03T19:02:59", "url": "https://files.pythonhosted.org/packages/3c/fd/5e6ea3d5ac83e9c304ae9c0fcc324a1aefb9d1d0222859f1597ee75a29cc/searchsplunk-0.2.1-py2.py3-none-any.whl" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "b184e434a7808dfe46ec2eeef356548e", "sha256": "ba2beaa33d54075699d3a7a09faea83772761ea1eeebe844f3756ceb42b0d190" }, "downloads": -1, "filename": "searchsplunk-0.3.0.tar.gz", "has_sig": false, "md5_digest": "b184e434a7808dfe46ec2eeef356548e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4091, "upload_time": "2017-11-08T22:34:30", "url": "https://files.pythonhosted.org/packages/fe/3e/4bb3877ad7b57ce81f64e29838dd972809b811cdfcee10cb352cd62f6c61/searchsplunk-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "6389475be873db52b1ee87cf84c3fd85", "sha256": "2c36181b48b2211d6d0cd31836ed391d58d3720a7dca780d3f805d3020b3b681" }, "downloads": -1, "filename": "searchsplunk-0.3.1.tar.gz", "has_sig": false, "md5_digest": "6389475be873db52b1ee87cf84c3fd85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4058, "upload_time": "2018-06-05T13:58:47", "url": "https://files.pythonhosted.org/packages/8c/e5/09002754c95ddeac72c71bc98441291435479866f2d3c7998a1cfab0458e/searchsplunk-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6389475be873db52b1ee87cf84c3fd85", "sha256": "2c36181b48b2211d6d0cd31836ed391d58d3720a7dca780d3f805d3020b3b681" }, "downloads": -1, "filename": "searchsplunk-0.3.1.tar.gz", "has_sig": false, "md5_digest": "6389475be873db52b1ee87cf84c3fd85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4058, "upload_time": "2018-06-05T13:58:47", "url": "https://files.pythonhosted.org/packages/8c/e5/09002754c95ddeac72c71bc98441291435479866f2d3c7998a1cfab0458e/searchsplunk-0.3.1.tar.gz" } ] }