#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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...