Security

How do I get data from a website (browser console logs) to Splunk using the JavaScript SDK?

arunsakthi
New Member

Hi,

How do I get data from a website about errors, debug logs (console.log) to Splunk? I have used the Javascript SDK and the issue is with how the credentials need to be passed. It's like posting my Splunk credentials so openly. Is there a way for me to get the data from website to an on-premises Splunk (Like Splunk MINT for mobile devices)?

Thanks,
Arun

0 Karma

Jeremiah
Motivator

What about using the HTTP event collector?

http://dev.splunk.com/view/event-collector/SP-CAAAE6M

You can use a token to write to the event collector that has no privileges (other than to write to the collector). And you could easily rotate/invalidate tokens over time if you need to.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...