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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...