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

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...