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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...