Rishi
Rishi

Reputation: 1349

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 .

Upvotes: 3

Views: 3928

Answers (1)

Shakeel
Shakeel

Reputation: 1059

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

Upvotes: 4

Related Questions