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!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...