Reputation: 1349
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
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