#Random
This is a place to discuss all things outside of Splunk, its products, and its use cases.

python to golang migration | splunk api call

mukeshchandak
Engager

I wish to replicate a python code that does an API call to Splunk in Golang:

 

 

 

 

import splunklib.client as client

service = client.connect(
	host=host,
	port=port,
	username=username,
	password=password,
	app=app)

 

 

 

 

while taking reference from https://godoc.org/github.com/kuba--/splunk#NewClient, this doesn't has the app argument. Can someone pls help me write this code in Golang.

 

Thanks,

Mukesh Chandak

 

Tags (3)
0 Karma
Get Updates on the Splunk Community!

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...