Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to send logs directly to splunk cloud using JavaScript as Google Analytic does?

I want to track some client side interactions using splunk. I want to know whether it is possible using JavaScript to send some information (logs) to splunk cloud directly ?

Google analytic does the same .

like image 422
Rishi Avatar asked Feb 15 '26 18:02

Rishi


1 Answers

We actually have a Splunk SDK for JavaScript that you can use, and some documentation on dev.splunk.com. You'll want to use service.log() which you can pass a string or JS object, see our example here.

Please let me know if you need further guidance

like image 81
Shakeel Avatar answered Feb 17 '26 08:02

Shakeel