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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

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 ...