![]() ![]() Generally speaking, when you see nice round numbers like 50000, then youre encountering a limitation/parameter within nf. Does that belong in 'data'? in headers? somewhere else? I also don't know if my -d conversino to the data dictionary is correct. Youll need to cycle Splunk after making the config change. I'm not exactly sure where to put the username and password. Sending a search query to Splunk using Pythons request library. To use Python 3.8, run the following command to create a symbolic link from the. Python3 : Records not getting pushed to Splunk. R = requests.get(baseurl, data=json.dumps(data), headers=headers) You can use this connector to support industrial scenarios, such. "search": "search earliest=-1m index=_internal", My task is to use your REST API to get this data using python. I keep getting an ssl CERTIFICATE_VERIFY_FAILED error.īash Command data=$( curl -k -u username:password -d 'search=search earliest=-1m index=_internal')ġ538748227.228319_D07875A9-FDD6-46E8-BE77-EDF9BD9A73B1 Hi, so my team is currently has some data on Splunk cloud. However, I am having issues when changing this to a python request using requests. If you need to include quotes in your search string, I suggest you use something like the following format. I can run a splunk api call in bash and get back a SID which I then use to get back a splunk query. Also note that you need to include an initial search command if doing a standard Splunk search, For example, searchsearch index will work, searchindex will not work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |