Splunk Enterprise

Required golang REST API

arunprasath42
Loves-to-Learn

Hi team, 

I need a golang REST API  code for sending the json logs to splunk enterprise. I have a hard time searching in the web , but unable to find the right sort of code that works . It would be helpful for me if i get some links for it as soon as possible . 

Thanks in advance,

Arun

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The REST API is language-agnostic.  Use the available golang features to send HTTPS requests to your Splunk server and parse the responses.  See the REST API manuals at https://docs.splunk.com/Documentation/Splunk for details.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...