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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...