Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

python script For rest api call

$
0
0
Hi All, I have a use case where I need to create an api connection and but the problem is we need to have a access token that we will supply in "HTTP Header Properties". This access token is created through another refresh token that can be done through putty or postman etc.. Now the main problem is, this access token is valid for only 10 mins and till 10 min we are getting the data in splunk from that source . But after that time we need to again repeat the same process manually. I need to automate this process by adding python script .The python script will run every 10 min to generate access token from refresh token and that access token then be used to get the data from the source. Thanks in advance.

Viewing all articles
Browse latest Browse all 47296

Trending Articles