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 | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...